Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] Zsh crashes when reverse-menu-complete is invoked during complist MENUSELECT without 'menu:' in $compstate[insert]
- X-seq: zsh-workers 48936
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG] Zsh crashes when reverse-menu-complete is invoked during complist MENUSELECT without 'menu:' in $compstate[insert]
- Date: Thu, 27 May 2021 11:20:36 +0300
- Archived-at: <https://zsh.org/workers/48936>
- List-id: <zsh-workers.zsh.org>
Given:
* complist's MENUSELECT mode is active
* $compstate[insert] does not start with 'menu:'
When:
* The user activates reverse-menu-complete.
Then:
* Zsh crashes.
Expected behavior:
* Move to the previous completion in the menu.
Steps to reproduce:
% zmodload zsh/complist
% tst() { compadd bar baz; compstate[insert]=1 }
% zle -C tst menu-select tst
% bindkey '^I' tst
% bindkey -M menuselect '^[[Z' reverse-menu-complete
% ba^I^[[Z
Messages sorted by:
Reverse Date,
Date,
Thread,
Author