1
0
forked from aniani/vim

patch 8.2.4988: textprop in wrong position when replacing multi-byte chars

Problem:    Textprop in wrong position when replacing multi-byte chars.
Solution:   Adjust textprop position. (closes #10461)
This commit is contained in:
LemonBoy
2022-05-21 11:20:42 +01:00
committed by Bram Moolenaar
parent 3fcccf94e8
commit 0d534d9cf2
3 changed files with 15 additions and 1 deletions

View File

@@ -573,6 +573,13 @@ func Test_prop_replace()
call assert_equal('yyyex xyyoxx', getline(1))
call assert_equal(expected, prop_list(1))
" Replace three 1-byte chars with three 2-byte ones.
exe "normal 0l3rø"
call assert_equal('yøøøx xyyoxx', getline(1))
let expected[0].length += 3
let expected[1].col += 3
call assert_equal(expected, prop_list(1))
call DeletePropTypes()
bwipe!
set bs&