From d931eed82655f1cbb54e7e1749642c8965e6d414 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 22 Aug 2007 17:24:08 +0000 Subject: 23794: fix crash completing on "foo$" (quotes significant) --- Src/Zle/compresult.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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); -- cgit 1.4.1