mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03: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:
@@ -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()]
|
||||
|
||||
Reference in New Issue
Block a user