mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00: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:
@@ -252,11 +252,11 @@ function! s:verify_exists(sect, name) abort
|
|||||||
if !empty($MANSECT)
|
if !empty($MANSECT)
|
||||||
try
|
try
|
||||||
let MANSECT = $MANSECT
|
let MANSECT = $MANSECT
|
||||||
unset $MANSECT
|
call setenv('MANSECT', v:null)
|
||||||
return s:get_path('', a:name)
|
return s:get_path('', a:name)
|
||||||
catch /^command error (/
|
catch /^command error (/
|
||||||
finally
|
finally
|
||||||
let $MANSECT = MANSECT
|
call setenv('MANSECT', MANSECT)
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user