mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
__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:
parent
0edaf42d10
commit
367661d4f1
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user