Avoid some variables bleeding into the user's env.

This commit is contained in:
Wayne Davison committed 2010-12-30 10:23:26 -08:00
1 parent fe3ac1a25b
commit 030cabee59
1 file changed
+3 -2
+3 -2
View File
@@ -93,9 +93,10 @@ _zsh_highlight-string() {
# Recolorize the current ZLE buffer.
_zsh_highlight-zle-buffer() {
setopt localoptions extendedglob bareglobqual
local colorize=true
local start_pos=0
local end_pos arg style
region_highlight=()
colorize=true
start_pos=0
for arg in ${(z)BUFFER}; do
local substr_color=0
((start_pos+=${#BUFFER[$start_pos+1,-1]}-${#${BUFFER[$start_pos+1,-1]##[[:space:]]#}}))