Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problem with 'predict-on'



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