summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}