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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user