mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Small fix for fish_update_completions (amended)
Amended from https://github.com/fish-shell/fish-shell/pull/1003. Fix a Unicode parsing error; search man6.
This commit is contained in:
parent
3996f178e5
commit
df300e042b
1 changed files with 2 additions and 2 deletions
|
@ -572,7 +572,7 @@ class TypeDarwinManParser(ManParser):
|
||||||
# Extract the description
|
# Extract the description
|
||||||
desc_lines = []
|
desc_lines = []
|
||||||
while lines and not self.is_option(lines[0]):
|
while lines and not self.is_option(lines[0]):
|
||||||
line = lines.pop(0).strip()
|
line = lossy_unicode(lines.pop(0).strip())
|
||||||
if line.startswith('.'):
|
if line.startswith('.'):
|
||||||
line = self.groff_replace_escapes(line)
|
line = self.groff_replace_escapes(line)
|
||||||
line = self.trim_groff(line).strip()
|
line = self.trim_groff(line).strip()
|
||||||
|
@ -871,7 +871,7 @@ def get_paths_from_manpath():
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
result = []
|
result = []
|
||||||
for parent_path in parent_paths:
|
for parent_path in parent_paths:
|
||||||
for section in ['man1', 'man8']:
|
for section in ['man1', 'man6', 'man8']:
|
||||||
directory_path = os.path.join(parent_path, section)
|
directory_path = os.path.join(parent_path, section)
|
||||||
try:
|
try:
|
||||||
names = os.listdir(directory_path)
|
names = os.listdir(directory_path)
|
||||||
|
|
Loading…
Reference in a new issue