diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-26 21:33:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-26 21:33:31 +0200 |
commit | 68e6560b84f196c82e27a72669684d5506a3a837 (patch) | |
tree | a0652888fa60c92d0d6d8335880961437c76b9f3 /runtime/doc/textprop.txt | |
parent | 20c023aee0ceafac9431fb8ab8d169747b5140dd (diff) | |
download | vim-git-68e6560b84f196c82e27a72669684d5506a3a837.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/doc/textprop.txt')
-rw-r--r-- | runtime/doc/textprop.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/textprop.txt b/runtime/doc/textprop.txt index c24e47a91..bda523038 100644 --- a/runtime/doc/textprop.txt +++ b/runtime/doc/textprop.txt @@ -1,4 +1,4 @@ -*textprop.txt* For Vim version 8.1. Last change: 2019 May 06 +*textprop.txt* For Vim version 8.1. Last change: 2019 May 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -12,7 +12,6 @@ What is not working yet: - Adjusting column/length when inserting text - Text properties spanning more than one line - prop_find() -- callbacks when text properties are outdated 1. Introduction |text-prop-intro| @@ -131,6 +130,12 @@ unless the whole line is deleted. When using replace mode, the text properties stay on the same character positions, even though the characters themselves change. +To update text properties after the text was changed, install a callback with +`listener_add()`. E.g, if your plugin does spell checking, you can have the +callback update spelling mistakes in the changed text. Vim will move the +properties below the changed text, so that they still highlight the same text, +thus you don't need to update these. + Text property columns are not updated: ~ |