Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: file completion listing in 4.1.0-dev-2
- X-seq: zsh-workers 15946
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: file completion listing in 4.1.0-dev-2
- Date: Fri, 5 Oct 2001 14:42:46 +0200
- In-reply-to: <OFC93C48F6.437F16D4-ON80256ADC.0039266F@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <OFC93C48F6.437F16D4-ON80256ADC.0039266F@xxxxxxxxxxxxxxx>
martin.ebourne@xxxxxxxxxxxx wrote:
> Also, if I do the below, then I get the blank line in the listing as
> indicated, and the cursor is left incorrectly where the '#' is (the
> character is really an 'e' under the cursor). This works correctly in
> zsh-4.1.0-dev-1.
Oops. It thought it needed more columns and printed two runs of
spaces instead of one.
Bye
Sven
Index: Src/Zle/compresult.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v
retrieving revision 1.41
diff -u -r1.41 compresult.c
--- Src/Zle/compresult.c 2001/08/08 07:41:04 1.41
+++ Src/Zle/compresult.c 2001/10/05 12:35:37
@@ -1717,8 +1717,11 @@
ws[tcol] = len;
}
}
- if (width < columns)
+ if (width < columns) {
+ if (++tcol < tcols)
+ tcols = tcol;
break;
+ }
}
}
}
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author