fix centos core dump

This commit is contained in:
Alwaysproblem 2023-02-01 17:22:21 +08:00
parent 0a733e5491
commit 02772b3375

View file

@ -335,7 +335,7 @@ schedprompt() {
# to avoid error messages). # to avoid error messages).
# Otherwise it updates on entry to zle, so there's no loss. # Otherwise it updates on entry to zle, so there's no loss.
if [ "$WIDGET" = "" ] || [ "$WIDGET" = "accept-line" ] ; then if [ "$WIDGET" = "" ] || [ "$WIDGET" = "accept-line" ] ; then
zle && zle reset-prompt; zle && zle .reset-prompt;
fi fi
# This ensures we're not too far off the start of the minute # This ensures we're not too far off the start of the minute