TRAPINT breaks consecutive menu-complete
Tomasz Pala <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <[email protected]> |
I've separated an issue, starting with clean config:
autoload -U compinit
compinit
zstyle ':completion:*' menu select=long-list select=1
# any of:
zle -C test menu-select _generic
zle -C test menu-complete _generic
zle -C test complete-word _generic
bindkey '\t' test
$ ls [tab, tab -- starts menu completion] [ctrl-c] [tab, tab -- completion again]
$ function TRAPINT { return 1; }
$ ls [tab, tab -- starts menu completion] [ctrl-c] [tab, tab - nothing happens, 3rd tab required]
This seems to happen for completion widgets only; with:
function test2 { zle menu-select; } # or menu-complete, or expand-or-complete
zle -N testN test2
bindkey '\t' testN
there's no difference caused by TRAPINT.
What's wrong with completion widget and such trivial TRAPINT?
--
Tomasz Pala <[email protected]>