summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2016-11-20 12:51:51 +0100
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-11-21 05:40:09 +0000
commit85ba68581377c4c77396c016a2bd9da0c107c50e (patch)
tree1cb60120145acada007ae6c8849c039a53f31cb7
parent1f5c734f5ef4327f65e28105f83351269a6259ca (diff)
downloadzsh-85ba68581377c4c77396c016a2bd9da0c107c50e.tar.gz
zsh-85ba68581377c4c77396c016a2bd9da0c107c50e.tar.xz
zsh-85ba68581377c4c77396c016a2bd9da0c107c50e.zip
39993: Tests for 39981.
-rw-r--r--ChangeLog4
-rw-r--r--Test/Y01completion.ztst11
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 49c58497a..a70ead69f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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