From 25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 5 Apr 2018 11:14:58 +0200 Subject: 42575: fix to not complete options in the argument to another option --- Test/Y03arguments.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test') diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index 761b4b1d2..fa4589374 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -184,6 +184,12 @@ 0:sticky option argument >line: {tst -x }{} + tst_arguments '-x:arg' -y -z + comptest $'tst -x -\t' +0:option argument with prefix that passes option prefix-needed test +>line: {tst -x -}{} +>DESCRIPTION:{arg} + tst_arguments '-x[desc]' comptest $'tst -x\t' 0:end of option sequence @@ -721,6 +727,15 @@ F:shouldn't offer -t in the first case (with stacked options) >line: {tst --prefix=one }{} >line: {tst --prefix=one --prop=}{} + tst_arguments -s -W -a+:arg -b + comptest $'tst -a\t' +0:with -W options mixed with arguments +>line: {tst -a}{} +>DESCRIPTION:{arg} +>DESCRIPTION:{option} +>NO:{-b} + + %clean zmodload -ui zsh/zpty -- cgit 1.4.1