comparison runtime/doc/textprop.txt @ 15512:f0f06837a699

Update runtime files. commit https://github.com/vim/vim/commit/d09091d4955c5f41de69928f2db85611ed54ed23 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 17 16:07:22 2019 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Jan 2019 16:15:08 +0100
parents 9d3d7b0f4861
children 7a563ee902b6
comparison
equal deleted inserted replaced
15511:f41122780189 15512:f0f06837a699
1 *textprop.txt* For Vim version 8.1. Last change: 2018 Dec 30 1 *textprop.txt* For Vim version 8.1. Last change: 2019 Jan 08
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
15 - callbacks when text properties are outdated 15 - callbacks when text properties are outdated
16 16
17 17
18 1. Introduction |text-prop-intro| 18 1. Introduction |text-prop-intro|
19 2. Functions |text-prop-functions| 19 2. Functions |text-prop-functions|
20 3. When text changes |text-prop-changes|
20 21
21 22
22 {Vi does not have text properties} 23 {Vi does not have text properties}
23 {not able to use text properties when the |+textprop| feature was 24 {not able to use text properties when the |+textprop| feature was
24 disabled at compile time} 25 disabled at compile time}
111 prop_find({props} [, {direction}]) search for a text property 112 prop_find({props} [, {direction}]) search for a text property
112 prop_list({lnum} [, {props}) text properties in {lnum} 113 prop_list({lnum} [, {props}) text properties in {lnum}
113 prop_remove({props} [, {lnum} [, {lnum-end}]]) 114 prop_remove({props} [, {lnum} [, {lnum-end}]])
114 remove a text property 115 remove a text property
115 116
117 ==============================================================================
118 3. When text changes *text-prop-changes*
119
120 Vim will do its best to keep the text properties on the text where it was
121 attached. When inserting or deleting text the properties after the change
122 will move accordingly.
123
124 When text is deleted and a text property no longer includes any text, it is
125 deleted. However, a text property that was defined as zero-width will remain,
126 unless the whole line is deleted.
127
128 When using replace mode, the text properties stay on the same character
129 positions, even though the characters themselves change.
130
131
132 When text property columns are not updated ~
133
134 - When setting the line with |setline()| or through an interface, such as Lua,
135 Tcl or Python.
136
116 137
117 vim:tw=78:ts=8:noet:ft=help:norl: 138 vim:tw=78:ts=8:noet:ft=help:norl: