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

Re: Bug somewhere in verbose output for completion listing



On Thu, 03 Oct 2013 17:20:07 +0100
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
> index f8983c3..ee39185 100644
> --- a/Src/Zle/computil.c
> +++ b/Src/Zle/computil.c
> @@ -465,6 +465,7 @@ cd_init(char *nam, char *hide, char *mlen, char *sep,
>      cd_state.showd = disp;
>      cd_state.maxg = cd_state.groups = cd_state.descs = 0;
>      cd_state.maxmlen = atoi(mlen);
> +    cd_state.premaxw = 0;
>      itmp = zterm_columns - cd_state.swidth - 4;
>      if (cd_state.maxmlen > itmp)
>          cd_state.maxmlen = itmp;
> 
> pws

Bart wrote:
> diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
> index f8983c3..ee39185 100644
> --- a/Src/Zle/computil.c
> +++ b/Src/Zle/computil.c
> @@ -465,6 +465,7 @@ cd_init(char *nam, char *hide, char *mlen, char *sep,
>      cd_state.showd = disp;
>      cd_state.maxg = cd_state.groups = cd_state.descs = 0;
>      cd_state.maxmlen = atoi(mlen);
> +    cd_state.premaxw = 0;
>      itmp = zterm_columns - cd_state.swidth - 4;
>      if (cd_state.maxmlen > itmp)
>          cd_state.maxmlen = itmp;

These look pretty similar.  I'll let you commit yours.

pws



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