Skip to content

Commit

Permalink
Merge pull request #46 from emacs-php/fix/bytes-offset
Browse files Browse the repository at this point in the history
Use position-bytes function instead of point
  • Loading branch information
zonuexe authored Aug 8, 2018
2 parents 09dba9c + 7377011 commit 1174d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
(point-min) (point-max)))
(:path (phpactor--expand-local-file-name buffer-file-name))
(:source_path (phpactor--expand-local-file-name buffer-file-name))
(:offset (1- (point)))
(:offset (1- (position-bytes (point))))
(:current_path (phpactor--expand-local-file-name buffer-file-name))
(t (error "`%s' is unknown argument" key))))

Expand Down

0 comments on commit 1174d43

Please sign in to comment.