diff options
author | Anmol Sethi <anmol@aubble.com> | 2016-12-26 21:01:37 -0500 |
---|---|---|
committer | Anmol Sethi <anmol@aubble.com> | 2016-12-27 16:18:03 -0500 |
commit | 49983a2270b1b98863608031406831bf22caea69 (patch) | |
tree | 3b7d4049f304e63d37e3fe0712e06115ba2fe9b5 | |
parent | e59147d1bab21c99c9e95e00e53b725d24fed1e2 (diff) | |
download | rneovim-49983a2270b1b98863608031406831bf22caea69.tar.gz rneovim-49983a2270b1b98863608031406831bf22caea69.tar.bz2 rneovim-49983a2270b1b98863608031406831bf22caea69.zip |
man.vim: properly handle manpage names with spaces
-rw-r--r-- | runtime/autoload/man.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 8ac8069730..320dd84263 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -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 |