diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-28 23:22:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-28 23:22:40 +0100 |
commit | b56ac049ea6ca77a0a9b0a415bac5e82ae60b842 (patch) | |
tree | 1c3e98248f984590cd1c1f7b57c171f06df04b96 /src/textprop.c | |
parent | c1a9bc1a7284bd0e60f9bddfef6a4ee733bfc838 (diff) | |
download | vim-git-b56ac049ea6ca77a0a9b0a415bac5e82ae60b842.tar.gz |
patch 8.1.0655: when appending a line text property flags are not addedv8.1.0655
Problem: When appending a line text property flags are not added.
Solution: Add text properties to a newly added line.
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/textprop.c b/src/textprop.c index ade99a7bf..016298bae 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -17,14 +17,12 @@ * Text properties have a type, which can be used to specify highlighting. * * TODO: - * - mismatch in column 1 being the first column - * - Let props overrule syntax HL. - * - When deleting a line where a prop ended, adjust flag of previous line. - * - When deleting a line where a prop started, adjust flag of next line. - * - When inserting a line add props that continue from previous line. - * - Adjust property column and length when text is inserted/deleted - * - Add an arrray for global_proptypes, to quickly lookup a proptype by ID - * - Add an arrray for b_proptypes, to quickly lookup a proptype by ID + * - Perhaps we only need TP_FLAG_CONT_NEXT ? + * - Adjust text property column and length when text is inserted/deleted + * - Add an arrray for global_proptypes, to quickly lookup a prop type by ID + * - Add an arrray for b_proptypes, to quickly lookup a prop type by ID + * - Checking the text length to detect text properties is slow. Use a flag in + * the index, like DB_MARKED? * - Also test line2byte() with many lines, so that ml_updatechunk() is taken * into account. * - add mechanism to keep track of changed lines. |