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:
committed by
Christian Brabandt
parent
c62dacb7ed
commit
7ac1145fbe
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user