summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8235a4fca..bb940691c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -823,6 +823,9 @@ buf_freeall(buf_T *buf, int flags)
#ifdef FEAT_SYN_HL
syntax_clear(&buf->b_s); /* reset syntax info */
#endif
+#ifdef FEAT_TEXT_PROP
+ clear_buf_prop_types(buf);
+#endif
buf->b_flags &= ~BF_READERR; /* a read error is no longer relevant */
}