diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-26 07:37:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 07:37:04 +0800 |
commit | 6116495e6e6d3508eb99720faad7e55ba7cbe978 (patch) | |
tree | 8eca83450056f36886aff09bbdc293692b596961 /test | |
parent | 83b51b36aa46d4bb25fada6eda22102e0aa5ef19 (diff) | |
parent | c5a7df79a7692c044cb69e38c7c6b71f44d4656d (diff) | |
download | rneovim-6116495e6e6d3508eb99720faad7e55ba7cbe978.tar.gz rneovim-6116495e6e6d3508eb99720faad7e55ba7cbe978.tar.bz2 rneovim-6116495e6e6d3508eb99720faad7e55ba7cbe978.zip |
Merge pull request #27201 from zeertzjq/vim-9.1.0054
vim-patch:9.1.{0054,0056}
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_listlbr.vim | 8 | ||||
-rw-r--r-- | test/old/testdir/test_put.vim | 10 |
2 files changed, 14 insertions, 4 deletions
diff --git a/test/old/testdir/test_listlbr.vim b/test/old/testdir/test_listlbr.vim index 6dea94fbf1..e9bf9f3ff2 100644 --- a/test/old/testdir/test_listlbr.vim +++ b/test/old/testdir/test_listlbr.vim @@ -375,13 +375,13 @@ endfunc func Test_linebreak_no_break_after_whitespace_only() call s:test_windows('setl ts=4 linebreak wrap') - call setline(1, "\tabcdefghijklmnopqrstuvwxyz" .. + call setline(1, "\t abcdefghijklmnopqrstuvwxyz" .. \ "abcdefghijklmnopqrstuvwxyz") let lines = s:screen_lines([1, 4], winwidth(0)) let expect = [ -\ " abcdefghijklmnop", -\ "qrstuvwxyzabcdefghij", -\ "klmnopqrstuvwxyz ", +\ " abcdefghijklmn", +\ "opqrstuvwxyzabcdefgh", +\ "ijklmnopqrstuvwxyz ", \ "~ ", \ ] call s:compare_lines(expect, lines) diff --git a/test/old/testdir/test_put.vim b/test/old/testdir/test_put.vim index 6c4bd28386..69fd4643c1 100644 --- a/test/old/testdir/test_put.vim +++ b/test/old/testdir/test_put.vim @@ -12,6 +12,16 @@ func Test_put_block() bwipe! endfunc +func Test_put_block_unicode() + new + call setreg('a', "À\nÀÀ\naaaaaaaaaaaa", "\<C-V>") + call setline(1, [' 1', ' 2', ' 3']) + exe "norm! \<C-V>jj\"ap" + let expected = ['À 1', 'ÀÀ 2', 'aaaaaaaaaaaa3'] + call assert_equal(expected, getline(1, 3)) + bw! +endfunc + func Test_put_char_block() new call setline(1, ['Line 1', 'Line 2']) |