From 7ac1145fbebb66dfee325dc5265309877d941c4e Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 6 Mar 2024 20:54:22 +0100 Subject: patch 9.1.0153: Text properties corrupted with fo+=aw and backspace Problem: Text properties corrupted with fo+=aw and backspace Solution: Allocate line and move text properties (zeertzjq) closes: #14147 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- src/testdir/test_comments.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/testdir/test_comments.vim') 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\", 'xt') + call assert_equal(['one'], getline(1, '$')) + set backspace& + close! endfunc -- cgit v1.2.3