A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/ad2dbd4b5f2cfa740e373fff0e021e2163909cfb below:

Man without a section again (#17119) · neovim/neovim@ad2dbd4 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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