File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -52,26 +52,24 @@ complete -F _tightvncviewer tightvncviewer
52
52
53
53
# NOTE: - VNC Viewer options are case insensitive.
54
54
# Preferred case is taken from -help.
55
- # - Both single dash (-) and double dash (--) are allowed as option prefix
56
55
_xvnc4viewer ()
57
56
{
58
57
local cur prev words cword
59
58
_init_completion || return
60
59
61
- # Convert double dash to single dash
62
- case ${prev/# --/ -} in
60
+ # Both single dash (-) and double dash (--) are allowed as option prefix
61
+ local opt=${prev/# --/ -}
62
+ case ${opt,,} in
63
63
# -passwd, -PasswordFile
64
- -[pP][aA][sS][sS][wW][dD]|-[pP][aA][sS][sS][wW][oO][rR][dD][fF][iI][lL][eE] )
64
+ -passwd|-passwordfile )
65
65
_filedir
66
66
return
67
67
;;
68
- # -PreferredEncoding
69
- -[pP][rR][eE][fF][eE][rR][rR][eE][dD][eE][nN][cC][oO][dD][iI][nN][gG])
68
+ -preferredencoding)
70
69
COMPREPLY=( $( compgen -W ' zrle hextile raw' -- " $cur " ) )
71
70
return
72
71
;;
73
- # -via
74
- -[vV][iI][aA])
72
+ -via)
75
73
_known_hosts_real -- " $cur "
76
74
return
77
75
;;
You can’t perform that action at this time.
0 commit comments