about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_tricky.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7fa6ad748..6807b5020 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-08-20  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 22643: Src/Zle/zle_tricky.c: completion in math context was
+	broken by searching for multibyte word characters.
+
 	* 22638: Src/Modules/zutil.c: deleting styles in contexts didn't
 	remove the style itself if it was the last context.
 
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 50c4a50da..b25dea6e7 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -1444,6 +1444,7 @@ get_comp_string(void)
 		    wb = wptr - zlemetaline;
 		    break;
 		}
+		wptr = cptr;
 	    }
 	}
 	zsfree(s);
@@ -1464,6 +1465,7 @@ get_comp_string(void)
 		}
 		if (cptr >= sqbr)
 		    break;
+		wptr = cptr;
 	    }
 
 	    if (wptr < sqbr) {