summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-15 15:38:36 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-15 15:38:36 +0000
commit0d4a9f65f73c7854cc831e11f71bdbe51b401bd6 (patch)
tree0a3660f30e86c636b3ba3a4838d5151690e92ead
parentbb3628e898331edcd82da5d6291ef7c8812be267 (diff)
downloadzsh-0d4a9f65f73c7854cc831e11f71bdbe51b401bd6.tar.gz
zsh-0d4a9f65f73c7854cc831e11f71bdbe51b401bd6.tar.xz
zsh-0d4a9f65f73c7854cc831e11f71bdbe51b401bd6.zip
22713: word end in math completion context was screwy
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_tricky.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 189581db3..9c88a4196 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-09-15  Peter Stephenson  <pws@csr.com>
 
+	* 22713: Src/Zle/zle_tricky.c: word end in math completion context
+	was screwy.
+
 	* 22710: README, Doc/Zsh/expn.yo, Src/prompt.c, Src/subst.c,
 	Src/utils.c: assume width 1 for control characters; don't
 	crash if width of repeated padding string is 0.
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 0983bec31..89277a9e1 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -1426,7 +1426,7 @@ get_comp_string(void)
 	     * (even if they don't have a `$' in front of them).  So we *
 	     * have to find that name.                                  */
 	    char *cspos = zlemetaline + zlemetacs, *wptr, *cptr;
-	    we = itype_end(cspos, IIDENT, 0) - cspos;
+	    we = itype_end(cspos, IIDENT, 0) - zlemetaline;
 
 	    /*
 	     * With multibyte characters we need to go forwards,