Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 26250:3711e56f7e7b v8.2.3656
patch 8.2.3656: Vim9: no error for an evironment variable by itself
Commit: https://github.com/vim/vim/commit/65259b5c6a8ad4edaf6eeb8dbb7b50342c64d403
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 23 14:52:06 2021 +0000
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 https://github.com/vim/vim/issues/9166)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 23 Nov 2021 16:00:06 +0100 |
parents | 640b62dbf6cb |
children | ce891b60bdcd |
comparison
equal
deleted
inserted
replaced
26249:785bcb1fe213 | 26250:3711e56f7e7b |
---|---|
582 &g:showbreak = 'nothing' | 582 &g:showbreak = 'nothing' |
583 &g:showbreak | 583 &g:showbreak |
584 END | 584 END |
585 CheckDefAndScriptFailure(lines, 'E1207:', 2) | 585 CheckDefAndScriptFailure(lines, 'E1207:', 2) |
586 &g:showbreak = '' | 586 &g:showbreak = '' |
587 | |
588 lines =<< trim END | |
589 $SomeEnv = 'value' | |
590 $SomeEnv | |
591 END | |
592 CheckDefAndScriptFailure(lines, 'E1207:', 2) | |
593 $SomeEnv = '' | |
587 enddef | 594 enddef |
588 | 595 |
589 def Test_environment_use_linebreak() | 596 def Test_environment_use_linebreak() |
590 var lines =<< trim END | 597 var lines =<< trim END |
591 new | 598 new |