Avoid unsetting nonexistent variables (#1075)
This commit is contained in:
parent
4e35f701ca
commit
2c1ad5bed1
2 changed files with 3 additions and 1 deletions
|
@ -326,4 +326,4 @@ else
|
||||||
print "prezto: editor: invalid key bindings: $key_bindings" >&2
|
print "prezto: editor: invalid key bindings: $key_bindings" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset key{,map,bindings}
|
unset key{,map,_bindings}
|
||||||
|
|
|
@ -54,4 +54,6 @@ if [[ -n "$key_info" ]]; then
|
||||||
bindkey -M "$keymap" "$key_info[Up]" history-substring-search-up
|
bindkey -M "$keymap" "$key_info[Up]" history-substring-search-up
|
||||||
bindkey -M "$keymap" "$key_info[Down]" history-substring-search-down
|
bindkey -M "$keymap" "$key_info[Down]" history-substring-search-down
|
||||||
done
|
done
|
||||||
|
|
||||||
|
unset keymap
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue