Mercurial > vim
diff src/testdir/test_normal.vim @ 26094:f53f365078dd v8.2.3580
patch 8.2.3580: gj does not move properly with a wide character
Commit: https://github.com/vim/vim/commit/aaec1d4fb12efb82b87ad322e95994de77b1a833
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Nov 4 13:28:29 2021 +0000
patch 8.2.3580: gj does not move properly with a wide character
Problem: gj does not move properly with a wide character.
Solution: Move one to the right. (Christian Brabandt, closes https://github.com/vim/vim/issues/8702)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Nov 2021 14:30:03 +0100 |
parents | 787c8061c747 |
children | 6b4f017d7005 |
line wrap: on
line diff
--- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -3423,4 +3423,16 @@ func Test_normal_count_after_operator() bw! endfunc +func Test_normal_gj_on_extra_wide_char() + new | 25vsp + let text='1 foooooooo ar e inszwe1 foooooooo inszwei' . + \ ' i drei vier fünf sechs sieben acht un zehn elf zwöfl' . + \ ' dreizehn v ierzehn fünfzehn' + put =text + call cursor(2,1) + norm! gj + call assert_equal([0,2,25,0], getpos('.')) + bw! +endfunc + " vim: shiftwidth=2 sts=2 expandtab