__fish_complete_suffix: do not show description when not passed one

Make it so that the generated completion has the form \t\n
when the optional description has been ommitted - otherwise
the original option's description gets inherited and is seen hundreds
of times repeating in the pager.
This commit is contained in:
Aaron Gyes 2019-01-21 22:32:40 -08:00
parent 0edaf42d10
commit 367661d4f1

View File

@ -21,12 +21,12 @@ function __fish_complete_suffix -d "Complete using files"
case 1
set comp (commandline -ct)
set suff $argv
set desc ""
set desc "\n"
case 2
set comp $argv[1]
set suff $argv[2]
set desc ""
set desc "\n"
case 3
set comp $argv[1]