We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dab756 commit 5ed0020Copy full SHA for 5ed0020
completions/vncviewer
@@ -83,13 +83,14 @@ _comp_cmd_xvnc4viewer()
83
WMDecorationWidth ZlibLevel)
84
[[ $cur == --* ]] && dash=-- || dash=-
85
86
- local IFS=$' \t\n' reset=$(shopt -p nocasematch)
87
- shopt -s nocasematch
88
- local option
89
- COMPREPLY=($(for option in "${options[@]}"; do
90
- [[ $dash$option == "$cur"* ]] && printf '%s\n' "$dash$option"
91
- done))
92
- $reset
+ local IFS=$' \t\n'
+ COMPREPLY=($(
+ shopt -s nocasematch
+ local option
+ for option in "${options[@]}"; do
+ [[ $dash$option == "$cur"* ]] && printf '%s\n' "$dash$option"
+ done
93
+ ))
94
else
95
_comp_compgen_known_hosts -- "$cur"
96
fi
0 commit comments