Fix unquoted var borking with "setopt shwordsplit" & whitespace

This commit is contained in:
Rowan Thorpe 2014-09-08 12:48:13 +03:00
commit cbacd85be2

View file

@ -108,7 +108,7 @@ function _per-directory-history-change-directory() {
}
function _per-directory-history-addhistory() {
print -Sr -- ${1%%$'\n'}
print -Sr -- "${1%%$'\n'}"
fc -p $_per_directory_history_directory
}