about summary refs log tree commit diff
path: root/Src/Zle/compresult.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-09 22:08:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-09 22:08:38 +0000
commit2983ed3fb3301d1808ae04a3a04389e3cd3fde8a (patch)
treec9a1f5eecc55a14ca9949c6fb07a4c1c2d2bfc09 /Src/Zle/compresult.c
parent9c33cf443419b74c5769279f4f1043465b62f64b (diff)
downloadzsh-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.c1
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;