comparison src/testdir/test_comments.vim @ 34493:1fa23ccd6d9a v9.1.0153

patch 9.1.0153: Text properties corrupted with fo+=aw and backspace Commit: https://github.com/vim/vim/commit/7ac1145fbebb66dfee325dc5265309877d941c4e Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Mar 6 20:54:22 2024 +0100 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>
author Christian Brabandt <cb@256bit.org>
date Wed, 06 Mar 2024 21:00:11 +0100
parents 55b3849ded11
children
comparison
equal deleted inserted replaced
34492:2dc69bbbf9ac 34493:1fa23ccd6d9a
234 call assert_equal(['one two', ''], getline(1, '$')) 234 call assert_equal(['one two', ''], getline(1, '$'))
235 235
236 %d 236 %d
237 call feedkeys("aone\ntwo\n", 'xt') 237 call feedkeys("aone\ntwo\n", 'xt')
238 call assert_equal(['one', 'two', ''], getline(1, '$')) 238 call assert_equal(['one', 'two', ''], getline(1, '$'))
239
240 set backspace=indent,eol,start
241 %d
242 call feedkeys("aone \n\<BS>", 'xt')
243 call assert_equal(['one'], getline(1, '$'))
244 set backspace&
239 245
240 close! 246 close!
241 endfunc 247 endfunc
242 248
243 " Test for joining lines with comments ('j' flag in 'formatoptions') 249 " Test for joining lines with comments ('j' flag in 'formatoptions')