aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2003-01-27 16:43:08 +0000
committerBart Schaefer <barts@users.sourceforge.net>2003-01-27 16:43:08 +0000
commitf96e139fb5abb6a6292b4f3f4a8b9aa0682c8403 (patch)
tree9af5c6a897bf69367160ca667eb248039d894b23
parenteb3b206c20f1194ea841006812e6ffad06eaeb85 (diff)
downloadzsh-f96e139fb5abb6a6292b4f3f4a8b9aa0682c8403.tar.gz
zsh-f96e139fb5abb6a6292b4f3f4a8b9aa0682c8403.tar.xz
zsh-f96e139fb5abb6a6292b4f3f4a8b9aa0682c8403.zip
18143: fix some problems with "toggle" style.
-rw-r--r--Functions/Zle/predict-on3
1 files changed, 2 insertions, 1 deletions
diff --git a/Functions/Zle/predict-on b/Functions/Zle/predict-on
index 1ce368bfa..8a2274910 100644
--- a/Functions/Zle/predict-on
+++ b/Functions/Zle/predict-on
@@ -55,7 +55,8 @@ insert-and-predict () {
((++CURSOR))
else
LBUFFER="$LBUFFER$KEYS"
- if [[ $LASTWIDGET == (self-insert|magic-space|backward-delete-char) ]]
+ if [[ $LASTWIDGET == (self-insert|magic-space|backward-delete-char) ||
+ $LASTWIDGET == (complete-word|accept-*|predict-*) ]]
then
if ! zle .history-beginning-search-backward
then