Skip to content

Commit 92fc37b

Browse files
committed
Add safe forward char.
1 parent bed18f2 commit 92fc37b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

isearch-project.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ SEARCH-STR : Search string."
276276
(isearch-project-isearch-yank-string search-str)))
277277
((memq this-command '(isearch-project-forward-symbol-at-point))
278278
(when (char-or-string-p isearch-project-thing-at-point)
279-
(forward-char 1)
279+
(unless (= (point) (point-max))
280+
(forward-char 1))
280281
(forward-symbol -1)
281282
(isearch-project-isearch-yank-string isearch-project-thing-at-point)))))
282283

0 commit comments

Comments
 (0)