aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-15 09:35:43 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-15 09:35:43 +0800
commit8f3e56ed3a3b05e19a9c5b9c812596cc87281bf9 (patch)
tree8041b6c2e6b4f891d600cf9b96681b1e5df7dd1e /src/nvim/testdir
parent1bd6c0a05c18e10e9439b4090e6f57f0d1e1fc21 (diff)
downloadrneovim-8f3e56ed3a3b05e19a9c5b9c812596cc87281bf9.tar.gz
rneovim-8f3e56ed3a3b05e19a9c5b9c812596cc87281bf9.tar.bz2
rneovim-8f3e56ed3a3b05e19a9c5b9c812596cc87281bf9.zip
vim-patch:8.2.3820: "vrc" does not replace composing characters
Problem: "vrc" does not replace composing characters, while "rc" does. Solution: Check the byte length including composing characters. (closes vim/vim#9351) https://github.com/vim/vim/commit/8ee6028de3daa9af9e5f90fa9e583ff407bee04f vim-patch:8.2.3823: test for visual replace is in wrong function Problem: Test for visual replace is in wrong function. Solution: Move it to another function. https://github.com/vim/vim/commit/6ecf58b0d7d9b8fbba780d19d2e6c0f227df715b
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_visual.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 04c7db38ef..da88293c8e 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -636,6 +636,11 @@ func Test_characterwise_visual_mode()
normal v$rx
call assert_equal(['x'], getline(1, '$'))
+ " replace a character with composing characters
+ call setline(1, "xã̳x")
+ normal gg0lvrb
+ call assert_equal("xbx", getline(1))
+
bwipe!
endfunc