summaryrefslogtreecommitdiff
path: root/Functions/Zle/predict-on
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2004-06-22 07:10:35 +0000
committerBart Schaefer <barts@users.sourceforge.net>2004-06-22 07:10:35 +0000
commit431db1a4c61cc99efa32b144db901ae6cbff9425 (patch)
treec4c52e9e3e3e4fdb67ca8a0d60ea340bb37e173a /Functions/Zle/predict-on
parentfd8cff4c3ff783e3190421dc38a5f9d66273deb1 (diff)
downloadzsh-431db1a4c61cc99efa32b144db901ae6cbff9425.tar.gz
zsh-431db1a4c61cc99efa32b144db901ae6cbff9425.zip
Minor update to cooperate with zle-line-init.
Diffstat (limited to 'Functions/Zle/predict-on')
-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() {