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 #4808)
This commit is contained in:
Bram Moolenaar
2019-08-13 22:27:32 +02:00
parent f077db2423
commit 45311b5274
4 changed files with 33 additions and 1 deletions

View File

@ -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.