comparison src/textprop.c @ 15294:2d8225cc1315 v8.1.0655

patch 8.1.0655: when appending a line text property flags are not added commit https://github.com/vim/vim/commit/b56ac049ea6ca77a0a9b0a415bac5e82ae60b842 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 28 23:22:40 2018 +0100 patch 8.1.0655: when appending a line text property flags are not added Problem: When appending a line text property flags are not added. Solution: Add text properties to a newly added line.
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Dec 2018 23:30:05 +0100
parents 19e79a1ed6b6
children 18c20ceee4b5
comparison
equal deleted inserted replaced
15293:0613129efe93 15294:2d8225cc1315
15 * 15 *
16 * Text properties have a user specified ID number, which can be unique. 16 * Text properties have a user specified ID number, which can be unique.
17 * Text properties have a type, which can be used to specify highlighting. 17 * Text properties have a type, which can be used to specify highlighting.
18 * 18 *
19 * TODO: 19 * TODO:
20 * - mismatch in column 1 being the first column 20 * - Perhaps we only need TP_FLAG_CONT_NEXT ?
21 * - Let props overrule syntax HL. 21 * - Adjust text property column and length when text is inserted/deleted
22 * - When deleting a line where a prop ended, adjust flag of previous line. 22 * - Add an arrray for global_proptypes, to quickly lookup a prop type by ID
23 * - When deleting a line where a prop started, adjust flag of next line. 23 * - Add an arrray for b_proptypes, to quickly lookup a prop type by ID
24 * - When inserting a line add props that continue from previous line. 24 * - Checking the text length to detect text properties is slow. Use a flag in
25 * - Adjust property column and length when text is inserted/deleted 25 * the index, like DB_MARKED?
26 * - Add an arrray for global_proptypes, to quickly lookup a proptype by ID
27 * - Add an arrray for b_proptypes, to quickly lookup a proptype by ID
28 * - Also test line2byte() with many lines, so that ml_updatechunk() is taken 26 * - Also test line2byte() with many lines, so that ml_updatechunk() is taken
29 * into account. 27 * into account.
30 * - add mechanism to keep track of changed lines. 28 * - add mechanism to keep track of changed lines.
31 */ 29 */
32 30