diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-24 23:07:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-24 23:07:04 +0100 |
commit | e3d31b02a56710e64ef0c1eb6ac5afcc57cb4890 (patch) | |
tree | a843f4b1b385b564b9e4c0266198da874c476d38 /runtime | |
parent | cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8 (diff) |
patch 8.1.0634: text properties cannot cross line boundariesv8.1.0634
Problem: Text properties cannot cross line boundaries.
Solution: Support multi-line text properties.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 2bc27a6295..cb1c61bedf 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2018 Dec 18 +*eval.txt* For Vim version 8.1. Last change: 2018 Dec 24 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2318,7 +2318,7 @@ prompt_setcallback({buf}, {expr}) none set prompt callback function prompt_setinterrupt({buf}, {text}) none set prompt interrupt function prompt_setprompt({buf}, {text}) none set prompt text prop_add({lnum}, {col}, {props}) none add a text property -prop_clear({lnum} [, {lnum-end} [, {bufnr}]]) +prop_clear({lnum} [, {lnum-end} [, {props}]]) none remove all text properties prop_find({props} [, {direction}]) Dict search for a text property @@ -6695,7 +6695,7 @@ prop_add({lnum}, {col}, {props}) used for a property that does not continue in another line "end_lnum" - line number for end of text - "end_col" - column for end of text; not used when + "end_col" - last column of the text; not used when "length" is present "bufnr" - buffer to add the property to; when omitted the current buffer is used @@ -6710,6 +6710,10 @@ prop_add({lnum}, {col}, {props}) property that spans more than one line. When neither "length" nor "end_col" are passed the property will apply to one character. + The property can end exactly at the last character of the + text, or just after it. In the last case, if text is appended + to the line, the text property size will increase, also when + the property type does not have "end_incl" set. "type" will first be looked up in the buffer the property is added to. When not found, the global property types are used. |