From 080b1cababbb8c883d5c87017d96b368a4c93fae Mon Sep 17 00:00:00 2001 From: arno Date: Tue, 5 Jul 2016 23:27:59 +0200 Subject: 38780: include variants containing non alphanumeric symbols in completion --- ChangeLog | 3 +++ Completion/X/Command/_setxkbmap | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7bf719390..417408d81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-07-05 Oliver Kiddle + * arno: 38780: Completion/X/Command/_setxkbmap: include + variants containing non alphanumeric symbols in completion + * Jordan Klassen: users/21551 (tweaked per users/21560): Completion/Unix/Command/_git: new git subtree completion diff --git a/Completion/X/Command/_setxkbmap b/Completion/X/Command/_setxkbmap index c490a9d8c..d192cc17a 100644 --- a/Completion/X/Command/_setxkbmap +++ b/Completion/X/Command/_setxkbmap @@ -1,4 +1,4 @@ -# compdef setxkbmap +#compdef setxkbmap # TODO: # model, option, symbols and types suggestions @@ -90,7 +90,7 @@ _setxkbmap_variant () { fi lines=("${(f)$(< ${file})}") - variants=(${${${(M)lines:#*xkb_symbols*\"([[:alnum:]])##\"*}##*xkb_symbols([^\"])##\"}%%\"*}) + variants=(${${${(M)lines:#*xkb_symbols*\"([^\"])##\"*}##*xkb_symbols([^\"])##\"}%%\"*}) _wanted variant expl 'variant' compadd -a variants -- cgit 1.4.1