From f4a248f9d38dc02d65610395f4c7f9a95a5d6612 Mon Sep 17 00:00:00 2001 From: Marlon Richert Date: Wed, 17 Mar 2021 12:50:57 -0500 Subject: 48180: Start menu selection with select=long-list in menu style --- Test/Y01completion.ztst | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'Test') diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index 65f341d49..f6474c4a1 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -237,6 +237,40 @@ F:regression test workers/31611 >FI:{file1} >FI:{file2} + comptesteval '_tst() { local disp=( {a..z} ); compadd -ld disp $disp[@]; comppostfuncs=( _pst ) }' + comptesteval '_pst() { local disp=( "$compstate[insert]" ); compadd -Qld disp $disp }' + comptesteval "zstyle ':completion:*' menu select=long-list" + comptest $'tst \C-d' +0: menu select=long-list starts menu selection for list widgets +>NO:{menu} +>NO:{a} +>NO:{b} +>NO:{c} +>NO:{d} +>NO:{e} +>NO:{f} +>NO:{g} +>NO:{h} +>NO:{i} +>NO:{j} +>NO:{k} +>NO:{l} +>NO:{m} +>NO:{n} +>NO:{o} +>NO:{p} +>NO:{q} +>NO:{r} +>NO:{s} +>NO:{t} +>NO:{u} +>NO:{v} +>NO:{w} +>NO:{x} +>NO:{y} +>NO:{z} + + %clean zmodload -ui zsh/zpty -- cgit v1.2.3-70-g09d2