zsh: fix multiline history saving
This commit is contained in:
parent
d108a398d4
commit
d708d14f76
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ function precmd() {
|
||||||
|
|
||||||
# Write the last command if successful, using the history buffered by
|
# Write the last command if successful, using the history buffered by
|
||||||
# zshaddhistory().
|
# zshaddhistory().
|
||||||
if [[ $? == 0 && -n $LASTHIST && -n $HISTFILE ]] ; then
|
if [[ $? == 0 && -n "$LASTHIST" && -n $HISTFILE ]] ; then
|
||||||
print -sr -- ${=${LASTHIST%%'\n'}}
|
print -sr "${LASTHIST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# over-prompt tie in
|
# over-prompt tie in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue