+@@ -213,7 +213,9 @@
+
+ function! s:get_path(sect, name) abort
+ if empty(a:sect)
+- return s:system(['man', s:find_arg, a:name])
++ " Take the first one if multiple lines returned, such as when
++ " both man1p/test.1p and man1/test.1 exists.
++ return split(s:system(['man', s:find_arg, a:name]), "\n")[0] . "\n"
+ endif
+ " '-s' flag handles:
+ " - tokens like 'printf(echo)'