summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Functions/Zle/predict-on4
1 files changed, 3 insertions, 1 deletions
diff --git a/Functions/Zle/predict-on b/Functions/Zle/predict-on
index 8a2274910..33478c0b5 100644
--- a/Functions/Zle/predict-on
+++ b/Functions/Zle/predict-on
@@ -56,7 +56,7 @@ insert-and-predict () {
else
LBUFFER="$LBUFFER$KEYS"
if [[ $LASTWIDGET == (self-insert|magic-space|backward-delete-char) ||
- $LASTWIDGET == (complete-word|accept-*|predict-*) ]]
+ $LASTWIDGET == (complete-word|accept-*|predict-*|zle-line-init) ]]
then
if ! zle .history-beginning-search-backward
then
@@ -120,6 +120,8 @@ delete-backward-and-predict() {
zle .history-beginning-search-forward || RBUFFER=""
return 0
fi
+ else
+ zle .kill-whole-line
fi
}
delete-no-predict() {