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
|
||||
# zshaddhistory().
|
||||
if [[ $? == 0 && -n $LASTHIST && -n $HISTFILE ]] ; then
|
||||
print -sr -- ${=${LASTHIST%%'\n'}}
|
||||
if [[ $? == 0 && -n "$LASTHIST" && -n $HISTFILE ]] ; then
|
||||
print -sr "${LASTHIST}"
|
||||
fi
|
||||
|
||||
# over-prompt tie in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue