Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with 'predict-on'
- X-seq: zsh-users 7267
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Problem with 'predict-on'
- Date: Thu, 25 Mar 2004 03:17:46 +0000
- In-reply-to: <1ox5qp2em0zf0.dlg@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <hg5h9729cfc5$.dlg@xxxxxxxxxxxxxxxx> <1040324164511.ZM15770@xxxxxxxxxxxxxxxxxxxxxxx> <1ox5qp2em0zf0.dlg@xxxxxxxxxxxxxxxx>
On Mar 24, 9:25pm, Thorsten Kampe wrote:
}
} * Bart Schaefer (2004-03-24 17:45 +0100)
}
} But I think the real culprit is *toggle*. It should turn off
} predict-on when predict-on doesn't make sense. But toggle turns off
} predict-on as soon as I type my first character (and that *really*
} doesn't make sense)
Hmm. Try this:
Index: Functions/Zle/predict-on
===================================================================
retrieving revision 1.2
diff -c -r1.2 predict-on
--- predict-on 15 Mar 2003 17:43:15 -0000 1.2
+++ predict-on 25 Mar 2004 03:16:14 -0000
@@ -56,7 +56,7 @@
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
Hey, PWS! I think zle-line-init should not put itself in LASTWIDGET.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author