comparison src/textprop.c @ 18498:9e6d5a4abb1c v8.1.2243

patch 8.1.2243: typos in comments Commit: https://github.com/vim/vim/commit/32aa10203bd0b4b270def03311a4599f9ffdecc4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 2 22:54:41 2019 +0100 patch 8.1.2243: typos in comments Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes https://github.com/vim/vim/issues/5160) Also adjust formatting a bit.
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Nov 2019 23:00:06 +0100
parents 4fd68dcf6d88
children efad02c0e3e1
comparison
equal deleted inserted replaced
18497:14e9f08eec14 18498:9e6d5a4abb1c
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 * - Adjust text property column and length when text is inserted/deleted. 14 * - Adjust text property column and length when text is inserted/deleted.
15 * -> :substitute with multiple matches, issue #4427
16 * -> a :substitute with a multi-line match 15 * -> a :substitute with a multi-line match
17 * -> search for changed_bytes() from misc1.c 16 * -> search for changed_bytes() from misc1.c
18 * -> search for mark_col_adjust() 17 * -> search for mark_col_adjust()
19 * - 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?
20 * - Add an arrray for global_proptypes, to quickly lookup a prop type by ID 19 * - Add an array for global_proptypes, to quickly lookup a prop type by ID
21 * - Add an arrray for b_proptypes, to quickly lookup a prop type by ID 20 * - Add an array for b_proptypes, to quickly lookup a prop type by ID
22 * - Checking the text length to detect text properties is slow. Use a flag in 21 * - Checking the text length to detect text properties is slow. Use a flag in
23 * the index, like DB_MARKED? 22 * the index, like DB_MARKED?
24 * - Also test line2byte() with many lines, so that ml_updatechunk() is taken 23 * - Also test line2byte() with many lines, so that ml_updatechunk() is taken
25 * into account. 24 * into account.
26 * - Perhaps have a window-local option to disable highlighting from text 25 * - Perhaps have a window-local option to disable highlighting from text
124 /* 123 /*
125 * Get an optional "bufnr" item from the dict in "arg". 124 * Get an optional "bufnr" item from the dict in "arg".
126 * When the argument is not used or "bufnr" is not present then "buf" is 125 * When the argument is not used or "bufnr" is not present then "buf" is
127 * unchanged. 126 * unchanged.
128 * If "bufnr" is valid or not present return OK. 127 * If "bufnr" is valid or not present return OK.
129 * When "arg" is not a dict or "bufnr" is invalide return FAIL. 128 * When "arg" is not a dict or "bufnr" is invalid return FAIL.
130 */ 129 */
131 static int 130 static int
132 get_bufnr_from_arg(typval_T *arg, buf_T **buf) 131 get_bufnr_from_arg(typval_T *arg, buf_T **buf)
133 { 132 {
134 dictitem_T *di; 133 dictitem_T *di;