Replaced all occurences of 'local IFS=' with 'IFS= ... unset IFS'. Fixes #12

This commit is contained in:
Nathan Broadbent
2011-12-14 13:27:39 +08:00
parent 2cd411aa4f
commit 993c9ee9fc
4 changed files with 27 additions and 19 deletions

View File

@@ -16,7 +16,7 @@
# --------------------------------------------------------------------
git_status_shortcuts() {
zsh_compat # Ensure shwordsplit is on for zsh
local IFS=$'\n'
IFS=$'\n'
local git_status="$(git status --porcelain 2> /dev/null)"
if [ -n "$git_status" ] && [[ $(echo "$git_status" | wc -l) -le $gs_max_changes ]]; then
@@ -113,6 +113,7 @@ git_status_shortcuts() {
# so just use plain 'git status'
git status
fi
unset IFS
zsh_reset # Reset zsh environment to default
}
# Template function for 'git_status_shortcuts'.