1
0
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:
Bram Moolenaar
2021-11-23 14:52:06 +00:00
parent cc9d725bbb
commit 65259b5c6a
3 changed files with 13 additions and 1 deletions

View File

@@ -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()