about summary refs log tree commit diff
path: root/Src/Zle
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 /Src/Zle
parent48fb5eabfb71f3c16950ab761919f001cc86f11f (diff)
downloadzsh-f29b8450e7db1a023142f509007feed4a9205c6a.tar.gz
zsh-f29b8450e7db1a023142f509007feed4a9205c6a.tar.xz
zsh-f29b8450e7db1a023142f509007feed4a9205c6a.zip
22643: completing in math context
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_tricky.c2
1 files changed, 2 insertions, 0 deletions
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) {