zsh: REALLY fix multiline history saving

This commit is contained in:
Martin Sekera 2020-05-03 02:06:57 +02:00
parent d708d14f76
commit d3ef814b56

View file

@ -211,7 +211,7 @@ function precmd() {
# Write the last command if successful, using the history buffered by
# zshaddhistory().
if [[ $? == 0 && -n "$LASTHIST" && -n $HISTFILE ]] ; then
print -sr "${LASTHIST}"
print -sr "${LASTHIST%%$'\n'}"
fi
# over-prompt tie in