mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fixup! man.vim: Refactor verify_exists to unset $MANSECT as needed
":unset" is not a valid Ex command. Use setenv() to set/unset environment variables.
This commit is contained in:
parent
b1fed1ada9
commit
ecb48e7f8a
@ -252,11 +252,11 @@ function! s:verify_exists(sect, name) abort
|
||||
if !empty($MANSECT)
|
||||
try
|
||||
let MANSECT = $MANSECT
|
||||
unset $MANSECT
|
||||
call setenv('MANSECT', v:null)
|
||||
return s:get_path('', a:name)
|
||||
catch /^command error (/
|
||||
finally
|
||||
let $MANSECT = MANSECT
|
||||
call setenv('MANSECT', MANSECT)
|
||||
endtry
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user