Skip to content

Commit

Permalink
Merge pull request #1118 from lem-project/fix-vi-mode-noh-error
Browse files Browse the repository at this point in the history
fix :noh behavior
  • Loading branch information
cxxxr authored Sep 30, 2023
2 parents c737240 + a4c6070 commit 00b3945
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/ext/isearch.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,14 @@
(isearch-add-char char)))

(defun isearch-end ()
(isearch-reset-overlays (current-buffer))
(change-previous-string *isearch-string*)
(buffer-unbound (current-buffer) 'isearch-redisplay-string)
(remove-hook (variable-value 'after-change-functions :buffer)
'isearch-change-buffer-hook)
(isearch-mode nil)
t)
(when (boundp '*isearch-string)
(isearch-reset-overlays (current-buffer))
(change-previous-string *isearch-string*)
(buffer-unbound (current-buffer) 'isearch-redisplay-string)
(remove-hook (variable-value 'after-change-functions :buffer)
'isearch-change-buffer-hook)
(isearch-mode nil)
t))

(defun isearch-redisplay-inactive (buffer)
(alexandria:when-let ((string (buffer-value buffer 'isearch-redisplay-string)))
Expand Down

0 comments on commit 00b3945

Please sign in to comment.