+5
-1
lines changedFilter options
+5
-1
lines changed Original file line number Diff line number Diff line change
@@ -232,7 +232,11 @@ function! s:get_path(sect, name) abort
232
232
"
233
233
" Finally, we can avoid relying on -S or -s here since they are very
234
234
" inconsistently supported. Instead, call -w with a section and a name.
235
-
let results = split(s:system(['man', s:find_arg, a:sect, a:name]))
235
+
if empty(a:sect)
236
+
let results = split(s:system(['man', s:find_arg, a:name]))
237
+
else
238
+
let results = split(s:system(['man', s:find_arg, a:sect, a:name]))
239
+
endif
236
240
237
241
if empty(results)
238
242
return ''
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4