summaryrefslogtreecommitdiffstats
path: root/runtime/plugin/manpager.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-08 09:50:29 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-08 09:50:29 +0200
commit91c4937be15b0b743b6bc495df602c1abbff6b87 (patch)
tree6bf443350e3af5431b12d17657753539cccde4ee /runtime/plugin/manpager.vim
parentea83bf06b92baeb6d68a10d8e8ffad289d31dae2 (diff)
Updated runtime files.
Diffstat (limited to 'runtime/plugin/manpager.vim')
-rw-r--r--runtime/plugin/manpager.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/plugin/manpager.vim b/runtime/plugin/manpager.vim
index 43b438c4b7..0e63d8414a 100644
--- a/runtime/plugin/manpager.vim
+++ b/runtime/plugin/manpager.vim
@@ -1,6 +1,6 @@
" Vim plugin for using Vim as manpager.
" Maintainer: Enno Nagel <ennonagel+vim@gmail.com>
-" Last Change: 2016 Apr 30
+" Last Change: 2016 May 07
" $MAN_PN is supposed to be set by MANPAGER, see ":help manpager.vim".
if empty($MAN_PN)
@@ -20,10 +20,10 @@ function! s:MANPAGER()
let manpage = expand('$MAN_PN')
endif
- let page_sec = matchlist( manpage, '^' . pagesec_pattern . '$')
+ let page_sec = matchlist(tolower(manpage), '^' . pagesec_pattern . '$')
bwipe!
setlocal filetype=man
- exe 'Man' page_sec[3] page_sec[1]
+ exe 'Man' page_sec[1] page_sec[0]
endfunction