about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-20 18:07:49 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-20 18:07:49 +0000
commitf29b8450e7db1a023142f509007feed4a9205c6a (patch)
treec66eb0bc2094ae2d8454a3add086c09335bfbff6
parent48fb5eabfb71f3c16950ab761919f001cc86f11f (diff)
downloadzsh-f29b8450e7db1a023142f509007feed4a9205c6a.tar.gz
zsh-f29b8450e7db1a023142f509007feed4a9205c6a.tar.xz
zsh-f29b8450e7db1a023142f509007feed4a9205c6a.zip
22643: completing in math context
-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) {