Skip to content

Commit 32cfc6f

Browse files
committed
Fix calculation formula for calculating position from offset
1 parent f73cef7 commit 32cfc6f

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
@@ -288,7 +288,7 @@
288288

289289
(find-file path)
290290
(unless (zerop offset)
291-
(goto-char (byte-to-position (1+ offset)))))
291+
(goto-char (1+ (byte-to-position offset)))))
292292

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

0 commit comments

Comments
 (0)