diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-31 18:49:57 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-31 18:51:06 +0800 |
commit | 2c522854c78d4e02d7337cf0b06174387f7f4583 (patch) | |
tree | 99171207e25340bc6bb1b3466f5c192d50d03a4f /src/nvim/testdir | |
parent | 63244f68e70f233b4175ce0018a58932f075d4c5 (diff) | |
download | rneovim-2c522854c78d4e02d7337cf0b06174387f7f4583.tar.gz rneovim-2c522854c78d4e02d7337cf0b06174387f7f4583.tar.bz2 rneovim-2c522854c78d4e02d7337cf0b06174387f7f4583.zip |
vim-patch:9.0.0118: no test for what patch 9.0.0155 fixes
Problem: No test for what patch 9.0.0155 fixes.
Solution: Add a test. Fix typos. (closes vim/vim#10822)
https://github.com/vim/vim/commit/750209459c9e54030409afe8f4ad59570600b5c4
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_messages.vim | 17 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 362c58aa31..179218e48a 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -346,7 +346,7 @@ func Test_CompleteDone_modify() \ 'user_data': '', \ } let v:completed_item = value - call assert_equal(v:completed_item, value) + call assert_equal(value, v:completed_item) endfunc func CompleteTest(findstart, query) diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim index e6172f6c73..a02d23b409 100644 --- a/src/nvim/testdir/test_messages.vim +++ b/src/nvim/testdir/test_messages.vim @@ -338,14 +338,14 @@ func Test_cmdheight_zero() " Check change/restore cmdheight when macro call feedkeys("qa", "xt") - call assert_equal(&cmdheight, 1) + call assert_equal(1, &cmdheight) call feedkeys("q", "xt") - call assert_equal(&cmdheight, 0) + call assert_equal(0, &cmdheight) call setline(1, 'somestring') call feedkeys("y", "n") %s/somestring/otherstring/gc - call assert_equal(getline(1), 'otherstring') + call assert_equal('otherstring', getline(1)) call feedkeys("g\<C-g>", "xt") call assert_match( @@ -357,7 +357,16 @@ func Test_cmdheight_zero() split endfor only - call assert_equal(&cmdheight, 0) + call assert_equal(0, &cmdheight) + + " Check that pressing ":" should not scroll a window + " Check for what patch 9.0.0115 fixes + botright 10new + call setline(1, range(12)) + 7 + call feedkeys(":\"\<C-R>=line('w0')\<CR>\<CR>", "xt") + call assert_equal('"1', @:) + bwipe! set cmdheight& set showcmd& |