fix search match highlight with latest z-sy-h

Search highlight is cleared after a timeout, which is one second by default.
Timeout period can be changed by setting an environment variable; example below
for setting one minute timeout.

  HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT=60

Fixes #131
This commit is contained in:
Atte Peltomäki
2023-11-08 11:36:37 +02:00
committed by Koston-0xDEADBEEF
parent 400e58a87f
commit da5f0673b9
2 changed files with 20 additions and 0 deletions
+3
View File
@@ -161,6 +161,9 @@ default values.
receive globally unique search results only once, then use this
configuration variable, or use `setopt HIST_IGNORE_ALL_DUPS`.
* `HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT` is a global variable that
defines a timeout in seconds for clearing the search highlight.
History
------------------------------------------------------------------------------