diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-06 20:54:22 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-06 20:54:22 +0100 |
commit | 7ac1145fbebb66dfee325dc5265309877d941c4e (patch) | |
tree | 4fa1c68eb4648a7d462908c16a475a68d7aa3b1c /src/testdir/test_comments.vim | |
parent | c62dacb7ed30af310e93ad50bced5a510a618b39 (diff) |
patch 9.1.0153: Text properties corrupted with fo+=aw and backspacev9.1.0153
Problem: Text properties corrupted with fo+=aw and backspace
Solution: Allocate line and move text properties
(zeertzjq)
closes: #14147
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_comments.vim')
-rw-r--r-- | src/testdir/test_comments.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_comments.vim b/src/testdir/test_comments.vim index c34b85c42d..67454f477e 100644 --- a/src/testdir/test_comments.vim +++ b/src/testdir/test_comments.vim @@ -237,6 +237,12 @@ func Test_comment_autoformat() call feedkeys("aone\ntwo\n", 'xt') call assert_equal(['one', 'two', ''], getline(1, '$')) + set backspace=indent,eol,start + %d + call feedkeys("aone \n\<BS>", 'xt') + call assert_equal(['one'], getline(1, '$')) + set backspace& + close! endfunc |