From 9cd22d1df8f0f5b554858471c86faa9f37b8fed4 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Sun, 18 Mar 2018 12:02:11 -0300 Subject: New upstream version 2.8 --- completions/vncviewer | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'completions/vncviewer') 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 -- cgit v1.2.1