Fix broken __fish_whatis

This has been broken for a *long* time.
This commit is contained in:
Mahmoud Al-Qudsi 2024-06-24 14:25:17 -05:00
parent 2d3bb36b8c
commit d914f4e991

View file

@ -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" ""