File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ _comp_cmd_tshark()
2626 _comp_cmd_tshark__prefs=" $( " $1 " -G defaultprefs 2> /dev/null | command sed -ne ' s/^#\{0,1\}\([a-z0-9_.-]\{1,\}:\).*/\1/p' |
2727 tr ' \n' ' ' ) "
2828 : ${prefix:= }
29- _comp_compgen -c " ${cur: ${# prefix} } " -- -P " $prefix " \
30- -W " $_comp_cmd_tshark__prefs "
29+ _comp_compgen -P " $prefix " -- -W " $_comp_cmd_tshark__prefs "
3130 [[ ${COMPREPLY-} == * : ]] && compopt -o nospace
3231 fi
3332 return
@@ -101,8 +100,7 @@ _comp_cmd_tshark()
101100 if [[ ${cur: ${# prefix} } == lua_script:* ]]; then
102101 _comp_compgen -c " ${cur#*: } " filedir lua
103102 else
104- _comp_compgen -c " ${cur: ${# prefix} } " -- -P " $prefix " \
105- -W ' lua_script:'
103+ _comp_compgen -P " $prefix " -- -W ' lua_script:'
106104 [[ ${COMPREPLY-} == * : ]] && compopt -o nospace
107105 fi
108106 return
You can’t perform that action at this time.
0 commit comments