summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-08-22 17:24:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-08-22 17:24:08 +0000
commitd931eed82655f1cbb54e7e1749642c8965e6d414 (patch)
tree8f9b88a70a1a6cb985ff46eb6d78087d733850dd /Src
parent749951e03d1d6036f97a45b65c0a7a85c2eecabd (diff)
downloadzsh-d931eed82655f1cbb54e7e1749642c8965e6d414.tar.gz
zsh-d931eed82655f1cbb54e7e1749642c8965e6d414.tar.xz
zsh-d931eed82655f1cbb54e7e1749642c8965e6d414.zip
23794: fix crash completing on "foo$" (quotes significant)
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compresult.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 62a35122f..021330ddb 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1148,7 +1148,7 @@ do_single(Cmatch m)
 		makesuffixstr(m->remf, m->rems, 1);
 	}
     }
-    if (minfo.we && partest && isset(AUTOPARAMKEYS)) {
+    if (minfo.we && partest && isset(AUTOPARAMKEYS) && minfo.insc - parq > 0) {
 	/* the suffix code needs numbers of characters, not octets */
 	int outlen;
 	char *tmpstr = dupstrpfx(zlemetaline + parq, minfo.insc - parq);