mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-13 23:37:12 +00:00
*highlight: Remove $BUFFER reference
This commit is contained in:
parent
7b109e615f
commit
bb36f8068a
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
||||||
style_pathsep=${style}_pathseparator
|
style_pathsep=${style}_pathseparator
|
||||||
[[ -z "$HSMW_HIGHLIGHT_STYLES[$style_pathsep]" || "$HSMW_HIGHLIGHT_STYLES[$style]" == "$HSMW_HIGHLIGHT_STYLES[$style_pathsep]" ]] && return 0
|
[[ -z "$HSMW_HIGHLIGHT_STYLES[$style_pathsep]" || "$HSMW_HIGHLIGHT_STYLES[$style]" == "$HSMW_HIGHLIGHT_STYLES[$style_pathsep]" ]] && return 0
|
||||||
for (( pos = start_pos; $pos <= end_pos; pos++ )) ; do
|
for (( pos = start_pos; $pos <= end_pos; pos++ )) ; do
|
||||||
if [[ $BUFFER[pos] == / ]]; then
|
if [[ ${buf[pos]} == "/" ]]; then
|
||||||
-hsmw-add-highlight $((pos - 1)) $pos $style_pathsep
|
-hsmw-add-highlight $((pos - 1)) $pos $style_pathsep
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue