mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
man.vim: properly handle manpage names with spaces
This commit is contained in:
parent
e59147d1ba
commit
49983a2270
@ -279,7 +279,7 @@ function! man#init_pager() abort
|
||||
endif
|
||||
" This is not perfect. See `man glDrawArraysInstanced`. Since the title is
|
||||
" all caps it is impossible to tell what the original capitilization was.
|
||||
let ref = tolower(matchstr(getline(1), '^\S\+'))
|
||||
let ref = substitute(matchstr(getline(1), '^[^)]\+)'), ' ', '_', 'g')
|
||||
try
|
||||
let b:man_sect = man#extract_sect_and_name_ref(ref)[0]
|
||||
catch
|
||||
|
Loading…
Reference in New Issue
Block a user