Skip to content

Commit f73cef7

Browse files
committed
Does not goto-char when offset is 0
1 parent 056dc88 commit f73cef7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpactor.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@
287287
(ring-insert find-tag-marker-ring (point-marker))))
288288

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

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

0 commit comments

Comments
 (0)