From 07509be51ae06b699dba6a3a85d76d79812a0d75 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 23 Nov 2016 11:57:02 +0100 Subject: unposted: add test case for partial completion matching of options with arguments --- ChangeLog | 2 ++ Test/Y03arguments.ztst | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 641992bd1..a1a4a0850 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-11-23 Oliver Kiddle + * unposted: Test/Y03arguments.ztst: partial match test case + * unposted: Src/builtin.c, Test/B03print.ztst: fix printf -v to an array without format string reuse diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index 0763c419d..d59ed5424 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -304,6 +304,12 @@ >NO:{--abc} >line: {tst --aah}{} + tst_arguments '--prefix=: :(one two)' '--prop=: :(three four)' --pre + comptest $'tst --pre=o\t --=\t' +0:partial completion of option with an argument +>line: {tst --prefix=one }{} +>line: {tst --prefix=one --prop=}{} + %clean zmodload -ui zsh/zpty -- cgit v1.2.3