diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-31 15:30:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-31 15:30:45 +0000 |
commit | f1dcd14fc5d4370476cd82895a4479ca2d252e54 (patch) | |
tree | c5d20989d5b5d69af7f0935c7e6f929126c0e5b8 /runtime/doc/textprop.txt | |
parent | db4d88c2adfe8f8122341ac9d6cae27ef78451c8 (diff) |
Update runtime files
Diffstat (limited to 'runtime/doc/textprop.txt')
-rw-r--r-- | runtime/doc/textprop.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/runtime/doc/textprop.txt b/runtime/doc/textprop.txt index 086742a8f8..c6178c39c1 100644 --- a/runtime/doc/textprop.txt +++ b/runtime/doc/textprop.txt @@ -1,4 +1,4 @@ -*textprop.txt* For Vim version 9.0. Last change: 2022 Nov 18 +*textprop.txt* For Vim version 9.0. Last change: 2022 Dec 19 VIM REFERENCE MANUAL by Bram Moolenaar @@ -220,10 +220,16 @@ prop_add({lnum}, {col}, {props}) Any Tab and other control character in the text will be changed to a space (Rationale: otherwise the size of the text is difficult to compute). - A negative "id" will be chosen and is returned. Once a - property with "text" has been added for a buffer then using a - negative "id" for any other property will give an error: - *E1293* + A negative "id" will be chosen and is returned. + + Before text properties with text were supported it was + possible to use a negative "id", even though this was very + rare. Now that negative "id"s are reserved for text + properties with text an error is given when using a negative + "id". When a text property with text already exists using a + negative "id" results in *E1293* . If a negative "id" was + used and later a text property with text is added results in + *E1339* . Can also be used as a |method|: > GetLnum()->prop_add(col, props) |