1
0
forked from aniani/vim

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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-03-06 20:54:22 +01:00
committed by Christian Brabandt
parent c62dacb7ed
commit 7ac1145fbe
4 changed files with 49 additions and 4 deletions

View File

@@ -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