mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 06:54:03 +00:00
create_manpage_completions: Also clear already_output_completions
Prevents issues if we try to read a manpage twice - in which case we
could fall back to another parser, creating different results.
Fixes #9787
(cherry picked from commit 5f672ece84
)
This commit is contained in:
parent
a1ac529086
commit
158e9b6829
1 changed files with 2 additions and 0 deletions
|
@ -837,6 +837,8 @@ def parse_manpage_at_path(manpage_path, output_directory):
|
|||
|
||||
# Clear the output list
|
||||
built_command_output[:] = []
|
||||
global already_output_completions
|
||||
already_output_completions = {}
|
||||
|
||||
if DEROFF_ONLY:
|
||||
parsers = [TypeDeroffManParser()]
|
||||
|
|
Loading…
Reference in a new issue