diff options
author | Richard M. Stallman <[email protected]> | 2004-09-04 19:41:45 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 2004-09-04 19:41:45 +0000 |
commit | 5f3a57c98eb76107524296308020f8db2cd5a4a5 (patch) | |
tree | 0bc38250e84e6f864bb04f97e36fecb83c2d1a23 /lisp/isearch.el | |
parent | 240c0c90e557cd161e22f1255b580076ee5d4d93 (diff) |
(isearch-lazy-highlight-new-loop): Don't invoke
highlighting if the search string is empty.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r-- | lisp/isearch.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 9d1e56aaf6..572553d816 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2362,9 +2362,10 @@ search string to change or the window to scroll)." isearch-lazy-highlight-case-fold-search isearch-case-fold-search isearch-lazy-highlight-regexp isearch-regexp isearch-lazy-highlight-wrapped nil) - (setq isearch-lazy-highlight-timer - (run-with-idle-timer isearch-lazy-highlight-initial-delay nil - 'isearch-lazy-highlight-update))))) + (unless (equal isearch-string "") + (setq isearch-lazy-highlight-timer + (run-with-idle-timer isearch-lazy-highlight-initial-delay nil + 'isearch-lazy-highlight-update)))))) (defun isearch-lazy-highlight-search () "Search ahead for the next or previous match, for lazy highlighting. |