comparison src/textprop.c @ 16676:79c5f723bb5d v8.1.1340

patch 8.1.1340: attributes from 'cursorline' overwrite textprop commit https://github.com/vim/vim/commit/bfd451283f8c37926f4b0aa22b74b534bd84e482 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 17 13:05:07 2019 +0200 patch 8.1.1340: attributes from 'cursorline' overwrite textprop Problem: Attributes from 'cursorline' overwrite textprop. Solution: Combine the attributes. (closes https://github.com/vim/vim/issues/3912)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 May 2019 13:15:05 +0200
parents 5733d8e33bce
children 6f453673eb19
comparison
equal deleted inserted replaced
16675:6d9f696696fe 16676:79c5f723bb5d
9 9
10 /* 10 /*
11 * Text properties implementation. See ":help text-properties". 11 * Text properties implementation. See ":help text-properties".
12 * 12 *
13 * TODO: 13 * TODO:
14 * - When using 'cursorline' attributes should be merged. (#3912)
15 * - Adjust text property column and length when text is inserted/deleted. 14 * - Adjust text property column and length when text is inserted/deleted.
16 * -> splitting a line can create a zero-length property. Don't highlight it
17 * and extend it when inserting text.
18 * -> a :substitute with a multi-line match 15 * -> a :substitute with a multi-line match
19 * -> join two lines, also with BS in Insert mode 16 * -> join two lines, also with BS in Insert mode
20 * -> search for changed_bytes() from misc1.c 17 * -> search for changed_bytes() from misc1.c
21 * - Perhaps we only need TP_FLAG_CONT_NEXT and can drop TP_FLAG_CONT_PREV? 18 * - Perhaps we only need TP_FLAG_CONT_NEXT and can drop TP_FLAG_CONT_PREV?
22 * - Add an arrray for global_proptypes, to quickly lookup a prop type by ID 19 * - Add an arrray for global_proptypes, to quickly lookup a prop type by ID