Mercurial > vim
diff 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 |
line wrap: on
line diff
--- 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.