Skip to content

Commit 1174d43

Browse files
authored
Merge pull request #46 from emacs-php/fix/bytes-offset
Use position-bytes function instead of point
2 parents 09dba9c + 7377011 commit 1174d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpactor.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
(point-min) (point-max)))
219219
(:path (phpactor--expand-local-file-name buffer-file-name))
220220
(:source_path (phpactor--expand-local-file-name buffer-file-name))
221-
(:offset (1- (point)))
221+
(:offset (1- (position-bytes (point))))
222222
(:current_path (phpactor--expand-local-file-name buffer-file-name))
223223
(t (error "`%s' is unknown argument" key))))
224224

0 commit comments

Comments
 (0)