about 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, 1 insertions, 1 deletions
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,