create_manpage_completions: use the first tool found

Noted in https://github.com/fish-shell/fish-shell/pull/6879#discussion_r421731269
This commit is contained in:
David Adam 2020-05-10 21:56:12 +08:00
parent 6bd563ca32
commit 30a8345a11

View File

@ -976,6 +976,7 @@ def get_paths_from_man_locations():
if IS_PY3:
output = output.decode("latin-1")
parent_paths = output.strip().split(":")
break
except (OSError, subprocess.CalledProcessError):
continue
# If we can't have the OS interpret $MANPATH, just use it as-is (gulp).