brackets: Fix bug introduced in 95d8256
This commit is contained in:
parent
e05b8e88ad
commit
ccaf6f48a1
@ -46,7 +46,7 @@ _zsh_highlight_brackets_highlighter_predicate()
|
|||||||
# Brackets highlighting function.
|
# Brackets highlighting function.
|
||||||
_zsh_highlight_brackets_highlighter()
|
_zsh_highlight_brackets_highlighter()
|
||||||
{
|
{
|
||||||
local char quotetype style
|
local char style
|
||||||
local -i bracket_color_size=${#ZSH_HIGHLIGHT_STYLES[(I)bracket-level-*]} buflen=${#BUFFER} level=0 matchingpos pos
|
local -i bracket_color_size=${#ZSH_HIGHLIGHT_STYLES[(I)bracket-level-*]} buflen=${#BUFFER} level=0 matchingpos pos
|
||||||
local -A levelpos lastoflevel matching
|
local -A levelpos lastoflevel matching
|
||||||
|
|
||||||
@ -68,11 +68,7 @@ _zsh_highlight_brackets_highlighter()
|
|||||||
;;
|
;;
|
||||||
['"'\'])
|
['"'\'])
|
||||||
# Skip everything inside quotes
|
# Skip everything inside quotes
|
||||||
quotetype=$char
|
pos=$BUFFER[(ib:pos+1:)$char]
|
||||||
while (( pos < buflen )) ; do
|
|
||||||
(( pos++ ))
|
|
||||||
[[ $BUFFER[pos+1] == $quotetype ]] && break
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user