zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Re: setopt list_types misaligns columns
@ 2000-03-17  8:11 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-03-17  8:11 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> Fragments of a long completion listing, with list_types set:
> 
> MakeTeXPK         makeinfo          mkdir             mogrify
> Misc/              makemap           mkdirhier         montage
> Muttrc            makempx           mke2fs            more
> mail              md5sum            mkinitrd          msgcmp
> mail-files        megatron          mkinstalldirs*     msgcomm
> mail.rc           merge             mklost+found      msgfmt
> 
> This does NOT happen if the complist module is loaded, whether or not
> colors are enabled.

Wrong length calculation. A rather stupid bug.

Bye
 Sven

diff -ru ../z.old/Src/Zle/compresult.c Src/Zle/compresult.c
--- ../z.old/Src/Zle/compresult.c	Thu Mar 16 10:06:43 2000
+++ Src/Zle/compresult.c	Fri Mar 17 09:09:03 2000
@@ -1799,9 +1799,8 @@
 	nicezputs(m->str, shout);
 	len = niceztrlen(m->str);
 
-	if (isset(LISTTYPES)) {
-	    if (buf)
-		putc(file_type(buf->st_mode), shout);
+	if (isset(LISTTYPES) && buf) {
+	    putc(file_type(buf->st_mode), shout);
 	    len++;
 	}
     }

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-03-17  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-17  8:11 PATCH: Re: setopt list_types misaligns columns Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).