diff options
author | Anmol Sethi <hi@nhooyr.io> | 2020-06-13 00:54:57 -0400 |
---|---|---|
committer | Anmol Sethi <hi@nhooyr.io> | 2020-06-13 02:55:40 -0400 |
commit | e8ccd0f2347feb26071e8667d24f3281db79ede3 (patch) | |
tree | 371f858f1a271f84399551cd3f16c7ac14d53b4e | |
parent | adc3425a3777c55080b7b5cdd37b02e858c5807c (diff) | |
download | rneovim-e8ccd0f2347feb26071e8667d24f3281db79ede3.tar.gz rneovim-e8ccd0f2347feb26071e8667d24f3281db79ede3.tar.bz2 rneovim-e8ccd0f2347feb26071e8667d24f3281db79ede3.zip |
man.vim: Remove unnecessary code
Not sure why this was added in https://github.com/neovim/neovim/commit/94f4469638590ca5cc724ab6459f2cfc78c621a4
It doesn't seem to do anything and I can't reproduce the linked issue
with this patch so I think it's all working now.
cc @justinmk
-rw-r--r-- | runtime/ftplugin/man.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 081181cfe9..0416e41368 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -6,7 +6,7 @@ if exists('b:did_ftplugin') || &filetype !=# 'man' endif let b:did_ftplugin = 1 -let s:pager = get(s:, 'pager', 0) || !exists('b:man_sect') +let s:pager = !exists('b:man_sect') if s:pager call man#init_pager() @@ -26,7 +26,7 @@ if !exists('g:no_plugin_maps') && !exists('g:no_man_maps') nnoremap <silent> <buffer> j gj nnoremap <silent> <buffer> k gk nnoremap <silent> <buffer> gO :call man#show_toc()<CR> - if 1 == bufnr('%') || s:pager + if s:pager nnoremap <silent> <buffer> <nowait> q :lclose<CR>:q<CR> else nnoremap <silent> <buffer> <nowait> q :lclose<CR><C-W>c |