1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-09-28 22:42:38 +00:00

Avoid unsetting nonexistent variables (#1075)

This commit is contained in:
Dario Gjorgjevski 2017-04-05 06:24:50 +02:00 committed by Kaleb Elwert
parent 4e35f701ca
commit 2c1ad5bed1
2 changed files with 3 additions and 1 deletions

View File

@ -326,4 +326,4 @@ else
print "prezto: editor: invalid key bindings: $key_bindings" >&2
fi
unset key{,map,bindings}
unset key{,map,_bindings}

View File

@ -54,4 +54,6 @@ if [[ -n "$key_info" ]]; then
bindkey -M "$keymap" "$key_info[Up]" history-substring-search-up
bindkey -M "$keymap" "$key_info[Down]" history-substring-search-down
done
unset keymap
fi