comparison src/testdir/test_textprop.vim @ 25050:7ef7a211f6bf v8.2.3062

patch 8.2.3062: internal error when adding several text properties Commit: https://github.com/vim/vim/commit/4cd5c52d64a66ad1984d33462a40e0c6721ca232 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 27 13:04:00 2021 +0200 patch 8.2.3062: internal error when adding several text properties Problem: Internal error when adding several text properties. Solution: Do not handle text properties when deleting a line for splitting a data block. (closes #8466)
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Jun 2021 13:15:03 +0200
parents 4bc0bda6857d
children eafc0e07b188
comparison
equal deleted inserted replaced
25049:e700f4d4aef4 25050:7ef7a211f6bf
1486 1486
1487 bwipe! 1487 bwipe!
1488 prop_type_delete('someprop') 1488 prop_type_delete('someprop')
1489 enddef 1489 enddef
1490 1490
1491 " This was calling ml_delete_int() and try to change text properties.
1492 def Test_prop_add_delete_line()
1493 new
1494 var a = 10
1495 var b = 20
1496 repeat([''], a)->append('$')
1497 prop_type_add('Test', {highlight: 'ErrorMsg'})
1498 for lnum in range(1, a)
1499 for col in range(1, b)
1500 prop_add(1, 1, {end_lnum: lnum, end_col: col, type: 'Test'})
1501 endfor
1502 endfor
1503
1504 # check deleting lines is OK
1505 :5del
1506 :1del
1507 :$del
1508
1509 prop_type_delete('Test')
1510 bwipe!
1511 enddef
1512
1491 1513
1492 " vim: shiftwidth=2 sts=2 expandtab 1514 " vim: shiftwidth=2 sts=2 expandtab