summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-13 22:27:32 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-13 22:27:32 +0200
commit45311b5274a6ac6e44235dfd4588c6b1bf0d4850 (patch)
tree6a4e242e2c509cb3931d7ac8684b7384f69f223c /runtime
parentf077db24230d10ef9a66ae14da34b639464d8fa2 (diff)
downloadvim-git-45311b5274a6ac6e44235dfd4588c6b1bf0d4850.tar.gz
patch 8.1.1844: buffer no longer unloaded when adding text propertiesv8.1.1844
Problem: Buffer no longer unloaded when adding text properties to it. Solution: Do not create the memfile. (closes #4808)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/textprop.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/textprop.txt b/runtime/doc/textprop.txt
index 185a60b2b..14ea58fde 100644
--- a/runtime/doc/textprop.txt
+++ b/runtime/doc/textprop.txt
@@ -322,6 +322,11 @@ will move accordingly.
When text is deleted and a text property no longer includes any text, it is
deleted. However, a text property that was defined as zero-width will remain,
unless the whole line is deleted.
+` *E275*
+When a buffer is unloaded, all the text properties are gone. There is no way
+to store the properties in a file. You can only re-create them. When a
+buffer is hidden the text is preserved and so are the text properties. It is
+not possible to add text properties to an unloaded buffer.
When using replace mode, the text properties stay on the same character
positions, even though the characters themselves change.