mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix broken __fish_whatis
This has been broken for a *long* time.
This commit is contained in:
parent
2d3bb36b8c
commit
d914f4e991
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ function __fish_whatis
|
|||
end
|
||||
|
||||
set -l description (whatis $cmd 2>/dev/null | string replace -r '.*? - ' '')[1]
|
||||
if not string match -qr -- "." "$description"
|
||||
if string match -qr -- "." "$description"
|
||||
printf '%s\n' $description
|
||||
return 0
|
||||
else if not string match -q -- "$fallback" ""
|
||||
|
|
Loading…
Reference in a new issue