Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Src/exec.c:3961: BUG: q = 13 != queue_in = 14



On Tue, 27 Jun 2017 08:38:42 +0000
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> The error is reproducible, but my current recipe requires z-sy-h.
> Haven't tried yet to minimize that, sorry.
> 
> Recipe:
> [[[
> $ git clone https://github.com/zsh-users/zsh-syntax-highlighting /tmp/zsh-syntax-highlighting
> $ Src/zsh -f 
> % source /tmp/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 
> % echo <TAB>
> 2: …/Src/exec.c:3961: BUG: q = 13 != queue_in = 14

I can see a couple in compctl.c... assuming zsh-syntax-highlighting
doesn't itself load compsys, they might be possibilities.

pws

diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index 9e6ccb4..5414b8f 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -1867,6 +1867,7 @@ ccmakehookfn(UNUSED(Hookdef dummy), struct ccmakedat *dat)
 	    redup(osi, 0);
 
 	    dat->lst = 0;
+	    unqueue_signals();
 	    return 0;
 	}
 	if (lastmatches) {
@@ -1890,6 +1891,7 @@ ccmakehookfn(UNUSED(Hookdef dummy), struct ccmakedat *dat)
 	    redup(osi, 0);
 
 	    dat->lst = 0;
+	    unqueue_signals();
 	    return 0;
 	}
 	if (!m || !(m = m->next))



Messages sorted by: Reverse Date, Date, Thread, Author