Make a few variables local

This commit is contained in:
jimmijj 2014-09-29 13:30:26 +00:00
parent a21f6ad6c4
commit df2041e2d6
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ _zsh_highlight_main_highlighter()
{
emulate -L zsh
setopt localoptions extendedglob bareglobqual
local start_pos=0 end_pos highlight_glob=true new_expression=true arg style lsstyle sudo=false sudo_arg=false
local start_pos=0 end_pos highlight_glob=true new_expression=true arg style lsstyle start_file_pos end_file_pos sudo=false sudo_arg=false
typeset -a ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR
typeset -a ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS
typeset -a ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS

View File

@ -35,7 +35,6 @@
# Array declaring active highlighters names.
typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
typeset -gA ZSH_HIGHLIGHT_FILES
# Update ZLE buffer syntax highlighting.
#
@ -107,6 +106,7 @@ _zsh_highlight()
# Array used by highlighters to declare user overridable styles.
typeset -gA ZSH_HIGHLIGHT_STYLES
typeset -gA ZSH_HIGHLIGHT_FILES
# Whether the command line buffer has been modified or not.
#