mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
39993: Tests for 39981.
This commit is contained in:
parent
1f5c734f5e
commit
85ba685813
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2016-11-21 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* 39993: Test/Y01completion.ztst: Tests for 39981.
|
||||
|
||||
2016-11-21 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 39981: Src/Zle/compresult.c: Make compstate[to_end] skip
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue