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

PATCH: Re: Nasty problem with cursor placement after declining a listing



Bart Schaefer wrote:

> This is 3.1.7, hot off sourceforge CVS:
> 
> zagzig% bindkey -e;autoload -U compinit; compinit -D
> zagzig% which <TAB>
> zsh: do you wish to see all 2091 possibilities (1046 lines)? n
> zagzig% which <TAB>
> zagzig% which \!
>                 
>                 ^ cursor is now down here on the blank line below the prompt
> 
> This doesn't happen when the complist module is loaded.

Missing tcmultup after a trashzle().

Bye
 Sven

Index: Src/Zle/compresult.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v
retrieving revision 1.16
diff -u -r1.16 compresult.c
--- Src/Zle/compresult.c	2000/05/29 12:42:59	1.16
+++ Src/Zle/compresult.c	2000/05/31 06:27:30
@@ -1661,7 +1661,9 @@
 	    putc('\n', shout);
 	settyinfo(&shttyinfo);
 	minfo.asked = 1;
-    }
+    } else if (minfo.asked == 2)
+	tcmultout(TCUP, TCMULTUP, nlnct);
+
     return (minfo.asked ? minfo.asked - 1 : 0);
 }
 

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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