neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a1bd31e6010c803fd842db6bdb0d531a71e67837
parent 143a1783328074a5167d9619aff2a8ee9c2ca481
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu,  4 May 2023 13:09:43 +0800

Merge pull request #23464 from zeertzjq/vim-9.0.0609

vim-patch:9.0.{0609,0612}
Diffstat:
Mtest/old/testdir/test_blockedit.vim | 19+++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/test/old/testdir/test_blockedit.vim b/test/old/testdir/test_blockedit.vim @@ -18,6 +18,7 @@ endfunc func Test_blockinsert_autoindent() new let lines =<< trim END + vim9script var d = { a: () => 0, b: () => 0, @@ -28,40 +29,42 @@ func Test_blockinsert_autoindent() filetype plugin indent on setlocal sw=2 et ft=vim setlocal indentkeys+=: - exe "norm! 2Gf)\<c-v>2jA: asdf\<esc>" + exe "norm! 3Gf)\<c-v>2jA: asdf\<esc>" let expected =<< trim END + vim9script var d = { a: (): asdf => 0, b: (): asdf => 0, c: (): asdf => 0, } END - call assert_equal(expected, getline(1, 5)) + call assert_equal(expected, getline(1, 6)) " insert on the next column should do exactly the same :%dele call setline(1, lines) - exe "norm! 2Gf)l\<c-v>2jI: asdf\<esc>" - call assert_equal(expected, getline(1, 5)) + exe "norm! 3Gf)l\<c-v>2jI: asdf\<esc>" + call assert_equal(expected, getline(1, 6)) :%dele call setline(1, lines) setlocal sw=8 noet - exe "norm! 2Gf)\<c-v>2jA: asdf\<esc>" + exe "norm! 3Gf)\<c-v>2jA: asdf\<esc>" let expected =<< trim END + vim9script var d = { a: (): asdf => 0, b: (): asdf => 0, c: (): asdf => 0, } END - call assert_equal(expected, getline(1, 5)) + call assert_equal(expected, getline(1, 6)) " insert on the next column should do exactly the same :%dele call setline(1, lines) - exe "norm! 2Gf)l\<c-v>2jI: asdf\<esc>" - call assert_equal(expected, getline(1, 5)) + exe "norm! 3Gf)l\<c-v>2jI: asdf\<esc>" + call assert_equal(expected, getline(1, 6)) filetype off bwipe!