aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_excmd.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-31 08:11:26 +0800
committerGitHub <noreply@github.com>2022-01-31 08:11:26 +0800
commit58d01d3403735a5b291015cf3abbdadfface74a1 (patch)
treedcf182c35f86798f9e9965f24aefcec9df46fc24 /src/nvim/testdir/test_excmd.vim
parenta28a9aec635676873e18e1ffe8d2334dd00a7ad3 (diff)
downloadrneovim-58d01d3403735a5b291015cf3abbdadfface74a1.tar.gz
rneovim-58d01d3403735a5b291015cf3abbdadfface74a1.tar.bz2
rneovim-58d01d3403735a5b291015cf3abbdadfface74a1.zip
vim-patch:8.2.3475: expression register set by not executed put command (#17211)
Diffstat (limited to 'src/nvim/testdir/test_excmd.vim')
-rw-r--r--src/nvim/testdir/test_excmd.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_excmd.vim b/src/nvim/testdir/test_excmd.vim
index 1c053c824f..bbf8b4dfc8 100644
--- a/src/nvim/testdir/test_excmd.vim
+++ b/src/nvim/testdir/test_excmd.vim
@@ -400,3 +400,13 @@ func Test_winsize_cmd()
call assert_fails('win_getid(1)', 'E475: Invalid argument: _getid(1)')
" Actually changing the window size would be flaky.
endfunc
+
+func Test_not_break_expression_register()
+ call setreg('=', '1+1')
+ if 0
+ put =1
+ endif
+ call assert_equal('1+1', getreg('=', 1))
+endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab