From 67d9a47d79a4265b98e0cc3dd3e6840030818489 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 7 May 2022 16:54:31 -0700 Subject: 50184: fix inclusion of -S separator in -r options passed to compadd through _describe --- ChangeLog | 3 +++ Completion/Base/Utility/_values | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6a995baf4..efc9bdb1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2022-05-07 Bart Schaefer + * 50184: Completion/Base/Utility/_values: fix inclusion of -S + separator in -r options passed to compadd through _describe + * Marlon Richert: 49954: Completion/Unix/Command/_gradle: improve handling of task names, subprojects, completion tags, and caching diff --git a/Completion/Base/Utility/_values b/Completion/Base/Utility/_values index 688ada848..5ed79e890 100644 --- a/Completion/Base/Utility/_values +++ b/Completion/Base/Utility/_values @@ -60,7 +60,7 @@ if compvalues -i "$keep[@]" "$@"; then _describe "$descr" \ noargs "$sep[@]" -M 'r:|[_-]=* r:|=*' -- \ args -S "${argsep}" -M 'r:|[_-]=* r:|=*' -- \ - opts -qS "${argsep}" -r "${argsep}${sep} \\t\\n\\-" -M 'r:|[_-]=* r:|=*' + opts -qS "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*' curcontext="$oldcontext" -- cgit 1.4.1