diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Y01completion.ztst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index b3f8be45b..7d8d70d8e 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -9,6 +9,7 @@ cd comp.tmp comptestinit -z $ZTST_testdir/../Src/zsh && { + comptesteval 'compdef _tst tst' mkdir dir1 && mkdir dir2 && touch file1 && @@ -87,6 +88,16 @@ F:regression test workers/31611 0:directory name is not a glob qualifier >line: {cd ../C/}{} + comptesteval "_tst() { compadd -U -s : -S / -I . word; compstate[to_end]= }" + comptest $'tst .\C-b\t' +0:allow for suffixes when moving cursor to end of match (with ignored suffix) +>line: {tst word:/}{.} + + comptesteval "_tst() { compadd -s : -S / word; compstate[to_end]= }" + comptest $'tst \t' +0:allow for suffixes when moving cursor to end of match (without ignored suffix) +>line: {tst word:/}{} + %clean zmodload -ui zsh/zpty |