aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index dded0cd98c1..9ead875bcf8 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -1277,8 +1277,7 @@ set_buffer_intervals (struct buffer *b, INTERVAL i)
1277INLINE bool 1277INLINE bool
1278buffer_has_overlays (void) 1278buffer_has_overlays (void)
1279{ 1279{
1280 return current_buffer->overlays 1280 return !itree_empty_p (current_buffer->overlays);
1281 && (current_buffer->overlays->root != NULL);
1282} 1281}
1283 1282
1284/* Functions for accessing a character or byte, 1283/* Functions for accessing a character or byte,