diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2018-03-18 12:02:11 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2018-03-18 12:02:11 -0300 |
commit | 9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (patch) | |
tree | 6399b936aecc388506ec32cfc10fdb06cfc1949f /completions/vncviewer | |
parent | 6d88f1055806932d9291f96847d2b691cccda2cd (diff) | |
download | bash-completion-9cd22d1df8f0f5b554858471c86faa9f37b8fed4.tar.gz |
New upstream version 2.8upstream/2.8
Diffstat (limited to 'completions/vncviewer')
-rw-r--r-- | completions/vncviewer | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/completions/vncviewer b/completions/vncviewer index 4a3f2abd..9b307331 100644 --- a/completions/vncviewer +++ b/completions/vncviewer @@ -32,7 +32,7 @@ _tightvncviewer() return ;; -via) - _known_hosts_real "$cur" + _known_hosts_real -- "$cur" return ;; esac @@ -44,7 +44,7 @@ _tightvncviewer() -owncmap -truecolour -truecolor -depth -compresslevel -quality -nojpeg -nocursorshape -x11cursor' -- "$cur" ) ) else - _known_hosts_real "$cur" + _known_hosts_real -- "$cur" fi } && complete -F _tightvncviewer tightvncviewer @@ -72,7 +72,7 @@ _xvnc4viewer() ;; # -via -[vV][iI][aA]) - _known_hosts_real "$cur" + _known_hosts_real -- "$cur" return ;; esac @@ -87,13 +87,14 @@ _xvnc4viewer() WMDecorationWidth ZlibLevel ) [[ "$cur" == --* ]] && dash=-- || dash=- - local option reset=$( shopt -p nocasematch ); shopt -s nocasematch + local IFS=$' \t\n' reset=$( shopt -p nocasematch ); shopt -s nocasematch + local option COMPREPLY=( $( for option in "${options[@]}"; do [[ $dash$option == "$cur"* ]] && printf '%s\n' $dash$option done ) ) $reset else - _known_hosts_real "$cur" + _known_hosts_real -- "$cur" fi } && complete -F _xvnc4viewer xvnc4viewer |