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

Re: Miscellaneous buglettes



Adam Spiers wrote:

>   - Try ls \ <enter>, then press C-d repeatedly.

Oops. But it was easier to fix than I first thought.

Bye
 Sven

diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c	Mon Sep  6 11:34:59 1999
+++ Src/Zle/zle_tricky.c	Mon Sep  6 11:37:58 1999
@@ -874,6 +874,8 @@
     metafy_line();
 
     ocs = cs;
+    origline = dupstring((char *) line);
+    origcs = cs;
     if (!isfirstln && chline != NULL) {
 	/* If we are completing in a multi-line buffer (which was not  *
 	 * taken from the history), we have to prepend the stuff saved *
@@ -897,8 +899,6 @@
     autoq = '\0';
     /* Get the word to complete. */
     noerrs = 1;
-    origline = dupstring((char *) line);
-    origcs = cs;
     s = get_comp_string();
     DPUTS(wb < 0 || cs < wb || cs > we,
 	  "BUG: 0 <= wb <= cs <= we is not true!");

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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