1- *eval.txt* For Vim version 8.1. Last change: 2018 Dec 27
1+ *eval.txt* For Vim version 8.1. Last change: 2019 Jan 01
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6689,18 +6689,19 @@ prompt_setprompt({buf}, {text}) *prompt_setprompt()*
66896689<
66906690 *prop_add()* *E965*
66916691prop_add({lnum} , {col} , {props} )
6692- Attach a text property at position {lnum} , {col} . Use one for
6693- the first column.
6692+ Attach a text property at position {lnum} , {col} . {col} is
6693+ counted in bytes, use one for the first column.
66946694 If {lnum} is invalid an error is given. *E966*
66956695 If {col} is invalid an error is given. *E964*
66966696
66976697 {props} is a dictionary with these fields:
6698- length length of text in characters , can only be used
6698+ length length of text in bytes , can only be used
66996699 for a property that does not continue in
6700- another line
6701- end_lnum line number for end of text
6702- end_col last column of the text; not used when
6703- "length" is present
6700+ another line; can be zero
6701+ end_lnum line number for the end of text
6702+ end_col column just after the text; not used when "length"
6703+ is present; when {col} and "end_col" are equal
6704+ this is a zero-width text property
67046705 bufnr buffer to add the property to; when omitted
67056706 the current buffer is used
67066707 id user defined ID for the property; when omitted
@@ -6709,11 +6710,12 @@ prop_add({lnum}, {col}, {props})
67096710 All fields except "type" are optional.
67106711
67116712 It is an error when both "length" and "end_lnum" or "end_col"
6712- are passed . Either use "length" or "end_col" for a property
6713+ are given . Either use "length" or "end_col" for a property
67136714 within one line, or use "end_lnum" and "end_col" for a
67146715 property that spans more than one line.
6715- When neither "length" nor "end_col" are passed the property
6716- will apply to one character.
6716+ When neither "length" nor "end_col" are given the property
6717+ will be zero-width. That means it will not be highlighted but
6718+ will move with the text, as a kind of mark.
67176719 The property can end exactly at the last character of the
67186720 text, or just after it. In the last case, if text is appended
67196721 to the line, the text property size will increase, also when
@@ -6773,7 +6775,8 @@ prop_list({lnum} [, {props}]) *prop_list()*
67736775 The properties are ordered by starting column and priority.
67746776 Each property is a Dict with these entries:
67756777 col starting column
6776- length length in bytes
6778+ length length in bytes, one more if line break is
6779+ included
67776780 id property ID
67786781 type name of the property type, omitted if
67796782 the type was deleted
0 commit comments