about summary refs log tree commit diff
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
parent7d17c9ca4be0ee1f2e7e983edf06868891901ae7 (diff)
downloadzsh-029483745b3db4280810cc5e0f32b4a1218fa21f.tar.gz
zsh-029483745b3db4280810cc5e0f32b4a1218fa21f.tar.xz
zsh-029483745b3db4280810cc5e0f32b4a1218fa21f.zip
better cursor positioning in words with multiple ambiguous word parts (11248)
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compmatch.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 038269fbb..a6f7bb3a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-08  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 11248: Src/Zle/compmatch.c: better cursor positioning in words
+ 	with multiple ambiguous word parts
+	
 2000-05-08  Tanaka Akira  <akr@zsh.org>
 
 	* Bart, Tanaka Akira: 11247: Don't signal to a process group which
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;
     }
 }