Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -635,6 +635,18 @@ func Test_prop_open_line() call assert_equal(expected, prop_list(2)) call DeletePropTypes() + " split at the space character with 'ai' active, the leading space is removed + " in the second line and the prop is shifted accordingly. + let expected = SetupOneLine() " 'xonex xtwoxx' + set ai + exe "normal 6|i\<CR>\<Esc>" + call assert_equal('xonex', getline(1)) + call assert_equal('xtwoxx', getline(2)) + let expected[1].col -= 6 + call assert_equal(expected, prop_list(1) + prop_list(2)) + set ai& + call DeletePropTypes() + bwipe! set bs& endfunc