summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-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) {