diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-15 21:54:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-15 21:54:04 -0400 |
| commit | d8e7fbe193cb3c811e305873a1f99b9f02d36d5f (patch) | |
| tree | 1c28ab9cb3df836e149a92ca878548b1b4758f1e /src/nvim/testdir/test_expr.vim | |
| parent | b8c0fac762f4b03f0438d3888ccf3f200648b882 (diff) | |
| parent | 97288e73c27d45b0fadbd6efa437fe54bc58b5e3 (diff) | |
| download | rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.tar.gz rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.tar.bz2 rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.zip | |
Merge pull request #14367 from janlazo/vim-8.2.2046
vim-patch:8.2.{265,2761,2764}
Diffstat (limited to 'src/nvim/testdir/test_expr.vim')
| -rw-r--r-- | src/nvim/testdir/test_expr.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim index 09d79979ce..0b41a1127a 100644 --- a/src/nvim/testdir/test_expr.vim +++ b/src/nvim/testdir/test_expr.vim @@ -501,3 +501,12 @@ func Test_empty_concatenate() call assert_equal('b', 'a'[4:0] . 'b') call assert_equal('b', 'b' . 'a'[4:0]) endfunc + +func Test_eval_after_if() + let s:val = '' + func SetVal(x) + let s:val ..= a:x + endfunc + if 0 | eval SetVal('a') | endif | call SetVal('b') + call assert_equal('b', s:val) +endfunc |