forked from aniani/vim
patch 8.2.3656: Vim9: no error for an evironment variable by itself
Problem: Vim9: no error for an evironment variable by itself. Solution: Give a "without effect" error. (closes #9166)
This commit is contained in:
@@ -584,6 +584,13 @@ def Test_use_register()
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E1207:', 2)
|
||||
&g:showbreak = ''
|
||||
|
||||
lines =<< trim END
|
||||
$SomeEnv = 'value'
|
||||
$SomeEnv
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E1207:', 2)
|
||||
$SomeEnv = ''
|
||||
enddef
|
||||
|
||||
def Test_environment_use_linebreak()
|
||||
|
||||
Reference in New Issue
Block a user