comparison src/testdir/test_spell.vim @ 13088:3dd37eec73f0 v8.0.1419

patch 8.0.1419: cursor column is not updated after ]s commit https://github.com/vim/vim/commit/b73fa629d6d3d705c1f8e8d5f8109fc9abd7bb6f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 21 20:27:47 2017 +0100 patch 8.0.1419: cursor column is not updated after ]s Problem: Cursor column is not updated after ]s. (Gary Johnson) Solution: Set the curswant flag.
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Dec 2017 20:30:06 +0100
parents 514c1741ab8c
children ceeeeb6b1fb0
comparison
equal deleted inserted replaced
13087:4a5e22458adb 13088:3dd37eec73f0
22 call assert_equal('plong', expand('<cword>')) 22 call assert_equal('plong', expand('<cword>'))
23 normal ]s 23 normal ]s
24 call assert_equal('zpelling', expand('<cword>')) 24 call assert_equal('zpelling', expand('<cword>'))
25 normal ]s 25 normal ]s
26 call assert_equal('plong', expand('<cword>')) 26 call assert_equal('plong', expand('<cword>'))
27 bwipe!
28 set nospell
29 endfunc
30
31 func Test_curswant()
32 new
33 call setline(1, ['Another plong line', 'abcdefghijklmnopq'])
34 set spell wrapscan
35 normal 0]s
36 call assert_equal('plong', expand('<cword>'))
37 normal j
38 call assert_equal(9, getcurpos()[2])
39 normal 0[s
40 call assert_equal('plong', expand('<cword>'))
41 normal j
42 call assert_equal(9, getcurpos()[2])
43
44 normal 0]S
45 call assert_equal('plong', expand('<cword>'))
46 normal j
47 call assert_equal(9, getcurpos()[2])
48 normal 0[S
49 call assert_equal('plong', expand('<cword>'))
50 normal j
51 call assert_equal(9, getcurpos()[2])
52
53 normal 1G0
54 call assert_equal('plong', spellbadword()[0])
55 normal j
56 call assert_equal(9, getcurpos()[2])
57
27 bwipe! 58 bwipe!
28 set nospell 59 set nospell
29 endfunc 60 endfunc
30 61
31 func Test_z_equal_on_invalid_utf8_word() 62 func Test_z_equal_on_invalid_utf8_word()