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

Minor change for new isearch code



Here's a minor tweak for the incremental search code based on my last
patch.  It just makes the startup case where you begin the search from
somewhere in the history a little more efficient by using the metafied
history entry directly rather than building one from "line".

Index: zle_hist.c
@@ -637,7 +637,7 @@
 	s = curhistline = metafy(UTOSCP(line), ll, META_DUP);
     }
     else
-	s = metafy(UTOSCP(line), ll, META_USEHEAP);
+	s = qgetevent(histline);
     bindtab = mainbindtab;
     pos = metalen(s, cs);
     for (;;) {

..wayne..




Messages sorted by: Reverse Date, Date, Thread, Author