mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Fix issue with substrings extraction
This commit is contained in:
parent
f575527564
commit
f713934f6c
2 changed files with 5 additions and 5 deletions
|
|
@ -168,7 +168,7 @@ _zsh_highlight-zle-buffer() {
|
|||
*': command') style=$ZSH_HIGHLIGHT_STYLES[command];;
|
||||
*) if _zsh_check-path; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[path]
|
||||
elif [[ ${arg:0:1} = ${histchars:0:1} ]]; then
|
||||
elif [[ $arg[0,1] = $histchars[0,1] ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
||||
else
|
||||
style=$ZSH_HIGHLIGHT_STYLES[unknown-token]
|
||||
|
|
@ -188,7 +188,7 @@ _zsh_highlight-zle-buffer() {
|
|||
*"*"*) $highlight_glob && style=$ZSH_HIGHLIGHT_STYLES[globbing] || style=$ZSH_HIGHLIGHT_STYLES[default];;
|
||||
*) if _zsh_check-path; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[path]
|
||||
elif [[ ${arg:0:1} = ${histchars:0:1} ]]; then
|
||||
elif [[ $arg[0,1] = $histchars[0,1] ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
||||
else
|
||||
style=$ZSH_HIGHLIGHT_STYLES[default]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue