diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2021-04-06 23:36:53 +0900 |
|---|---|---|
| committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2021-04-06 23:38:52 +0900 |
| commit | 9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe (patch) | |
| tree | 3ed59d1b4bd66adcfdb85e2793bce1fc4d55b645 /Src | |
| parent | 48389: getkeystring() should not return ptr to local var (diff) | |
| download | zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.tar zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.tar.gz zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.tar.bz2 zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.tar.lz zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.tar.xz zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.tar.zst zsh-9562a1ee7bd0d9cb4793f2441c7709e3da6dcefe.zip | |
48391: fix display problem in menu-complete
Take account of the trailing file type character even when '-d disp'
is given to compadd.
Diffstat (limited to 'Src')
| -rw-r--r-- | Src/Zle/compresult.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 30fc60b78..8b5955819 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1583,7 +1583,7 @@ calclist(int showall) nlines += 1 + printfmt(m->disp, 0, 0, 0); g->flags |= CGF_HASDL; } else { - l = ZMB_nicewidth(m->disp); + l = ZMB_nicewidth(m->disp) + !!m->modec; ndisp++; if (l > glong) glong = l; |
