comparison src/testdir/test_textprop.vim @ 28865:a04815de0bd3 v8.2.4955

patch 8.2.4955: text property in wrong position after auto-indent Commit: https://github.com/vim/vim/commit/788c06a2492b546dd0824b119251cd8ea7da9cb5 Author: LemonBoy <thatlemon@gmail.com> Date: Sat May 14 18:48:05 2022 +0100 patch 8.2.4955: text property in wrong position after auto-indent Problem: Text property in wrong position after auto-indent. Solution: Adjust text property columns. (closes https://github.com/vim/vim/issues/10422, closes https://github.com/vim/vim/issues/7719)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 May 2022 20:00:05 +0200
parents 92736a673e3c
children 6a4edacbd178
comparison
equal deleted inserted replaced
28864:1df04dc2fa27 28865:a04815de0bd3
631 let exp_first = expected[0:0] 631 let exp_first = expected[0:0]
632 call assert_equal(exp_first, prop_list(1)) 632 call assert_equal(exp_first, prop_list(1))
633 let expected = expected[1:1] 633 let expected = expected[1:1]
634 let expected[0].col -= 4 634 let expected[0].col -= 4
635 call assert_equal(expected, prop_list(2)) 635 call assert_equal(expected, prop_list(2))
636 call DeletePropTypes()
637
638 " split at the space character with 'ai' active, the leading space is removed
639 " in the second line and the prop is shifted accordingly.
640 let expected = SetupOneLine() " 'xonex xtwoxx'
641 set ai
642 exe "normal 6|i\<CR>\<Esc>"
643 call assert_equal('xonex', getline(1))
644 call assert_equal('xtwoxx', getline(2))
645 let expected[1].col -= 6
646 call assert_equal(expected, prop_list(1) + prop_list(2))
647 set ai&
636 call DeletePropTypes() 648 call DeletePropTypes()
637 649
638 bwipe! 650 bwipe!
639 set bs& 651 set bs&
640 endfunc 652 endfunc