On Sunday 14 August 2005 19:55, Andrey Borzenkov wrote:
>
> 1. attempt to use a-a-m-c results in
>
> {pts/2}% ll кккккккк ккккккккккк/home/bor/src/zsh/Src/Zle/compresult.c:690:
> line not metafied
> zsh: segmentation fault (core dumped) pkg/bin/zsh
This happens with ASCII as well; the attached patch fixes it (zrefresh calls
completion recursively).
Index: Src/Zle/zle_refresh.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_refresh.c,v
retrieving revision 1.26
diff -u -p -r1.26 zle_refresh.c
--- Src/Zle/zle_refresh.c 11 Aug 2005 18:40:53 -0000 1.26
+++ Src/Zle/zle_refresh.c 15 Aug 2005 17:18:25 -0000
@@ -746,8 +746,13 @@ singlelineout:
zfree(tmpline, tmpll);
/* if we have a new list showing, note it; if part of the list has been
- overwritten, redisplay it. */
+ overwritten, redisplay it. We have to metafy line back before calling
+ completion code */
if (showinglist == -2 || (showinglist > 0 && showinglist < nlnct)) {
+ if (remetafy) {
+ metafy_line();
+ remetafy = 0;
+ }
inlist = 1;
listmatches();
inlist = 0;
Attachment:
pgp0M89ZUuZAL.pgp
Description: PGP signature