aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-12-27 11:49:22 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-18 07:46:46 +0800
commit176df92bd7f8a3c8755b2a16e021489ca03db747 (patch)
tree59a7efcf33c295bdd5195ae6223173d3c68015fc /src/nvim/testdir
parentfcf5dd34fdfde3a6632b96a88f66c1053cba08d1 (diff)
downloadrneovim-176df92bd7f8a3c8755b2a16e021489ca03db747.tar.gz
rneovim-176df92bd7f8a3c8755b2a16e021489ca03db747.tar.bz2
rneovim-176df92bd7f8a3c8755b2a16e021489ca03db747.zip
vim-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 vim/vim#8702) https://github.com/vim/vim/commit/aaec1d4fb12efb82b87ad322e95994de77b1a833
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_normal.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
index aff22f5d01..cb1d66cb98 100644
--- a/src/nvim/testdir/test_normal.vim
+++ b/src/nvim/testdir/test_normal.vim
@@ -2759,4 +2759,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 ins‍zwe1 foooooooo ins‍zwei' .
+ \ ' 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