about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-10-03 14:52:54 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2013-10-03 14:52:54 -0700
commitea30fdaf25ad11ca727d3708bdd47b0f90d9ff68 (patch)
tree39666e1baa43da073cfcb20a2c9d90363f2e94d3
parentae92cadc75fbf7e8ec356cf09d3f73db9868424b (diff)
downloadzsh-ea30fdaf25ad11ca727d3708bdd47b0f90d9ff68.tar.gz
zsh-ea30fdaf25ad11ca727d3708bdd47b0f90d9ff68.tar.xz
zsh-ea30fdaf25ad11ca727d3708bdd47b0f90d9ff68.zip
31781: "compdescribe -i" clears the completion list column padding width
-rw-r--r--ChangeLog6
-rw-r--r--Src/Zle/computil.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c50b3228..9ec3bc581 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-03  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 31781: Src/Zle/computil.c: "compdescribe -i" must clear the
+	completion list column padding width along with the rest of the
+	description state.  Cf. 31782.
+
 2013-09-26  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 31772: Src/params.c: queue_signals() to prevent re-entry into
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index f8983c3ff..ee3918566 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;