Don't export 'i' and 'cmd_output' as global vars

This commit is contained in:
Jonathan del Strother
2012-02-28 12:42:38 +00:00
parent c68f0c523a
commit 077f22da0b
2 changed files with 3 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ git_status_shortcuts() {
zsh_compat # Ensure shwordsplit is on for zsh
IFS=$'\n'
local git_status="$(git status --porcelain 2> /dev/null)"
local i
if [ -n "$git_status" ] && [[ $(echo "$git_status" | wc -l) -le $gs_max_changes ]]; then
unset stat_file; unset stat_col; unset stat_msg; unset stat_grp; unset stat_x; unset stat_y