Mercurial > vim
comparison runtime/doc/textprop.txt @ 17694:6f9cde96ee3c v8.1.1844
patch 8.1.1844: buffer no longer unloaded when adding text properties
commit https://github.com/vim/vim/commit/45311b5274a6ac6e44235dfd4588c6b1bf0d4850
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 13 22:27:32 2019 +0200
patch 8.1.1844: buffer no longer unloaded when adding text properties
Problem: Buffer no longer unloaded when adding text properties to it.
Solution: Do not create the memfile. (closes https://github.com/vim/vim/issues/4808)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 13 Aug 2019 22:30:06 +0200 |
parents | e414281d8bb4 |
children | f2c2f9126a82 |
comparison
equal
deleted
inserted
replaced
17693:cefb7da6a32c | 17694:6f9cde96ee3c |
---|---|
320 will move accordingly. | 320 will move accordingly. |
321 | 321 |
322 When text is deleted and a text property no longer includes any text, it is | 322 When text is deleted and a text property no longer includes any text, it is |
323 deleted. However, a text property that was defined as zero-width will remain, | 323 deleted. However, a text property that was defined as zero-width will remain, |
324 unless the whole line is deleted. | 324 unless the whole line is deleted. |
325 ` *E275* | |
326 When a buffer is unloaded, all the text properties are gone. There is no way | |
327 to store the properties in a file. You can only re-create them. When a | |
328 buffer is hidden the text is preserved and so are the text properties. It is | |
329 not possible to add text properties to an unloaded buffer. | |
325 | 330 |
326 When using replace mode, the text properties stay on the same character | 331 When using replace mode, the text properties stay on the same character |
327 positions, even though the characters themselves change. | 332 positions, even though the characters themselves change. |
328 | 333 |
329 To update text properties after the text was changed, install a callback with | 334 To update text properties after the text was changed, install a callback with |