about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-08 09:29:22 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-08 09:29:22 +0000
commit029483745b3db4280810cc5e0f32b4a1218fa21f (patch)
treef3db98c241f2a1ac5e8ea2375c34ed562663f2a7 /Src/Zle
parent7d17c9ca4be0ee1f2e7e983edf06868891901ae7 (diff)
downloadzsh-029483745b3db4280810cc5e0f32b4a1218fa21f.tar.gz
zsh-029483745b3db4280810cc5e0f32b4a1218fa21f.tar.xz
zsh-029483745b3db4280810cc5e0f32b4a1218fa21f.zip
better cursor positioning in words with multiple ambiguous word parts (11248)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compmatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index f38ea6a9f..682994fdd 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -211,9 +211,9 @@ void
 cline_setlens(Cline l, int both)
 {
     while (l) {
-	l->max = cline_sublen(l);
+	l->min = cline_sublen(l);
 	if (both)
-	    l->min = l->max;
+	    l->max = l->min;
 	l = l->next;
     }
 }