mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-14 08:02:45 +08:00
Fix missing of builtin token description
(cherry picked from commit ef7aa793c6
)
This commit is contained in:
parent
fb6d3c3669
commit
fbf9ac8046
|
@ -18,7 +18,7 @@ function __fish_whatis_current_token -d "Show man page entries or function descr
|
||||||
and set desc "$token - $funcinfo[5]"
|
and set desc "$token - $funcinfo[5]"
|
||||||
|
|
||||||
case builtin
|
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
|
case file
|
||||||
set -l tmpdesc (whatis $token 2>/dev/null)
|
set -l tmpdesc (whatis $token 2>/dev/null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user