comparison 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
comparison
equal deleted inserted replaced
26093:3284f1db4475 26094:f53f365078dd
3421 call feedkeys("gg!9!\<C-B>\"\<CR>", 'xt') 3421 call feedkeys("gg!9!\<C-B>\"\<CR>", 'xt')
3422 call assert_equal('".,$!', @:) 3422 call assert_equal('".,$!', @:)
3423 bw! 3423 bw!
3424 endfunc 3424 endfunc
3425 3425
3426 func Test_normal_gj_on_extra_wide_char()
3427 new | 25vsp
3428 let text='1 foooooooo ar e ins‍zwe1 foooooooo ins‍zwei' .
3429 \ ' i drei vier fünf sechs sieben acht un zehn elf zwöfl' .
3430 \ ' dreizehn v ierzehn fünfzehn'
3431 put =text
3432 call cursor(2,1)
3433 norm! gj
3434 call assert_equal([0,2,25,0], getpos('.'))
3435 bw!
3436 endfunc
3437
3426 " vim: shiftwidth=2 sts=2 expandtab 3438 " vim: shiftwidth=2 sts=2 expandtab