Skip to content

Commit 0a9b8e1

Browse files
authored
Merge pull request #49 from emacs-php/fix/move-to-position
Fix movement position in file containing multibyte characters
2 parents 448bd2f + e8e6e47 commit 0a9b8e1

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
@@ -287,7 +287,7 @@
287287
(ring-insert find-tag-marker-ring (point-marker))))
288288

289289
(find-file path)
290-
(goto-char (1+ offset)))
290+
(goto-char (1+ (byte-to-position offset))))
291291

292292
(cl-defun phpactor-action-close-file (&key path)
293293
"Close file from Phpactor."

0 commit comments

Comments
 (0)