about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-05-08 16:35:08 -0500
committerdana <dana@dana.is>2019-05-08 16:35:08 -0500
commitc1a33575b4c522cea71c57664c852727fe6a633c (patch)
tree59729727c427c0bfb146a2fee3c00b652e298dab /Src
parentcd6fd2b0a3641774e7854ff8298d1d82643c4b4a (diff)
downloadzsh-c1a33575b4c522cea71c57664c852727fe6a633c.tar.gz
zsh-c1a33575b4c522cea71c57664c852727fe6a633c.tar.xz
zsh-c1a33575b4c522cea71c57664c852727fe6a633c.zip
44275: Fix compset -p/-s multibyte inconsistency and documentation
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/complete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index c2f46c7f5..7d9751fa6 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -1011,7 +1011,7 @@ do_comp_vars(int test, int na, char *sa, int nb, char *sb, int mod)
 		}
 	    } else
 #endif
-	    if ((int)strlen(test == CVT_PRENUM ? compprefix : compsuffix) >= na)
+	    if ((int)strlen(test == CVT_PRENUM ? compprefix : compsuffix) < na)
 		return 0;
 	    if (test == CVT_PRENUM)
 		ignore_prefix(na);