From 34c06887900903f1722ba556b72da5f1c9fc6dd3 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 7 Jun 2018 19:33:42 -0400 Subject: vim-patch:8.0.0523: dv} deletes part of a multi-byte character. Problem: dv} deletes part of a multi-byte character. (Urtica Dioica) Solution: Include the whole character. https://github.com/vim/vim/commit/bf3d58073f7b34b2d65d1d08a728d1164e03cceb --- src/nvim/testdir/test_normal.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index 10d4c5dd94..27ac084ef0 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -2387,3 +2387,15 @@ func Test_changelist() %bwipe! let &ul = save_ul endfunc + +func Test_delete_until_paragraph() + if !has('multi_byte') + return + endif + new + normal grádv} + call assert_equal('á', getline(1)) + normal grád} + call assert_equal('', getline(1)) + bwipe! +endfunc -- cgit