File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ _feh()
100
100
$split && return
101
101
102
102
if [[ " $cur " == -* ]]; then
103
+ # Some versions of feh just output "See 'man feh'" for --help :(
103
104
COMPREPLY=( $( compgen -W ' $( _parse_help "$1" --help )' -- " $cur " ) )
104
105
[[ $COMPREPLY == * = ]] && compopt -o nospace
105
106
[[ $COMPREPLY ]] && return
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ assert_complete_any "feh "
17
17
sync_after_int
18
18
19
19
20
- set test "--lis<TAB> should complete \"--list\""
21
- assert_complete "--list" "feh --lis" $test
20
+ if {[assert_exec {feh --help | grep "man feh" || exit 1} "" "" "unsupported"]} {
21
+ set test "--lis<TAB> should complete \"--list\""
22
+ assert_complete "--list" "feh --lis" $test
23
+ }
22
24
23
25
24
26
sync_after_int
You can’t perform that action at this time.
0 commit comments