Fix missing of builtin token description

This commit is contained in:
phanium 2025-01-09 21:24:16 +08:00 committed by Fabian Boehm
parent fac29e775a
commit ef7aa793c6

View file

@ -18,7 +18,7 @@ function __fish_whatis_current_token -d "Show man page entries or function descr
and set desc "$token - $funcinfo[5]"
case builtin
set desc (__fish_print_help $token | awk "/./ {print; exit}")
set desc (__fish_print_help $token | awk "/./ { getline; print; exit }" | string trim)
case file
set -l tmpdesc (whatis $token 2>/dev/null)