remove length restriction for command highlighting
That decision should be made by the ZSH Syntax Highlighting plugin.
This commit is contained in:
parent
25a9b38c76
commit
b200932843
1 changed files with 1 additions and 2 deletions
|
|
@ -41,7 +41,6 @@
|
|||
|
||||
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=magenta,fg=white,bold'
|
||||
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=white,bold'
|
||||
HISTORY_SUBSTRING_SEARCH_MAX_BUFFER_SIZE=250000
|
||||
|
||||
history-substring-search-begin() {
|
||||
setopt extendedglob
|
||||
|
|
@ -77,7 +76,7 @@ history-substring-search-begin() {
|
|||
history-substring-search-highlight() {
|
||||
# highlight $BUFFER using zsh-syntax-highlighting plugin
|
||||
# https://github.com/nicoulaj/zsh-syntax-highlighting
|
||||
if [[ $+functions[_zsh_highlight-zle-buffer] -eq 1 && $+BUFFER -lt $HISTORY_SUBSTRING_SEARCH_MAX_BUFFER_SIZE ]]; then
|
||||
if [[ $+functions[_zsh_highlight-zle-buffer] -eq 1 ]]; then
|
||||
_zsh_highlight-zle-buffer
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue