1
0
forked from aniani/vim

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

@@ -256,7 +256,10 @@ prop_add_common(
}
if (buf->b_ml.ml_mfp == NULL)
ml_open(buf);
{
emsg(_("E275: Cannot add text property to unloaded buffer"));
return;
}
for (lnum = start_lnum; lnum <= end_lnum; ++lnum)
{