zsh: REALLY fix multiline history saving
This commit is contained in:
parent
d708d14f76
commit
d3ef814b56
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue