aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/man.vim
diff options
context:
space:
mode:
authorAnmol Sethi <anmol@aubble.com>2016-11-18 13:21:45 -0500
committerAnmol Sethi <anmol@aubble.com>2016-11-18 14:06:42 -0500
commitcf52b881d987a5e5175b0df2304832c58ba065f7 (patch)
treee6157f5ab8e4dc3f278ab6f6097aa4febaad804a /runtime/autoload/man.vim
parentacbce46782c4e948e7f6a79bbeb58aac62c4c9ab (diff)
downloadrneovim-cf52b881d987a5e5175b0df2304832c58ba065f7.tar.gz
rneovim-cf52b881d987a5e5175b0df2304832c58ba065f7.tar.bz2
rneovim-cf52b881d987a5e5175b0df2304832c58ba065f7.zip
man.vim: no guarantee that the first line contains anything useful
Fixes #5628
Diffstat (limited to 'runtime/autoload/man.vim')
-rw-r--r--runtime/autoload/man.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim
index bac88fc99e..5c44e8c98a 100644
--- a/runtime/autoload/man.vim
+++ b/runtime/autoload/man.vim
@@ -50,7 +50,7 @@ function! man#open_page(count, count1, mods, ...) abort
return
endtry
call s:push_tag()
- let bufname = 'man://'.name.(empty(sect)?'':'('.sect.')')
+ let bufname = fnameescape('man://'.name.(empty(sect)?'':'('.sect.')'))
if a:mods !~# 'tab' && s:find_man()
noautocmd execute 'silent edit' bufname
else
@@ -157,7 +157,7 @@ endfunction
function! man#pop_tag() abort
if !empty(s:tag_stack)
let tag = remove(s:tag_stack, -1)
- silent execute tag['buf'].'buffer'
+ execute 'silent' tag['buf'].'buffer'
call cursor(tag['lnum'], tag['col'])
endif
endfunction