Skip to content

Commit 056dc88

Browse files
committed
Fix movement position in file containing multibyte characters
1 parent 448bd2f commit 056dc88

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 (byte-to-position (1+ offset))))
291291

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

0 commit comments

Comments
 (0)