diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-08-09 22:08:38 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-08-09 22:08:38 +0000 |
commit | 2983ed3fb3301d1808ae04a3a04389e3cd3fde8a (patch) | |
tree | c9a1f5eecc55a14ca9949c6fb07a4c1c2d2bfc09 /Src/Zle/compresult.c | |
parent | 9c33cf443419b74c5769279f4f1043465b62f64b (diff) | |
download | zsh-2983ed3fb3301d1808ae04a3a04389e3cd3fde8a.tar.gz zsh-2983ed3fb3301d1808ae04a3a04389e3cd3fde8a.tar.xz zsh-2983ed3fb3301d1808ae04a3a04389e3cd3fde8a.zip |
22594: Attempt to fix some off-by-one errors for completion lists
that exactly fit the display width
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r-- | Src/Zle/compresult.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 887720a2f..e3adc0803 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1480,6 +1480,7 @@ calclist(int showall) hidden = 1; while ((sptr = *pp)) { while (sptr && *sptr) { + /* TODO: we need to use wcwidth() here */ nlines += (nlptr = strchr(sptr, '\n')) ? 1 + (nlptr - sptr - 1) / columns : (ztrlen(sptr) - 1) / columns; |