mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.0605: Vim9: cannot unlet an environment variable
Problem: Vim9: cannot unlet an environment variable. Solution: Implement unlet for $VAR.
This commit is contained in:
@@ -289,6 +289,11 @@ def Test_unlet()
|
||||
' unlet s:svar',
|
||||
'enddef',
|
||||
], 'E1081:')
|
||||
|
||||
$ENVVAR = 'foobar'
|
||||
assert_equal('foobar', $ENVVAR)
|
||||
unlet $ENVVAR
|
||||
assert_equal('', $ENVVAR)
|
||||
enddef
|
||||
|
||||
func Test_wrong_type()
|
||||
|
Reference in New Issue
Block a user