From 3940a20f62baf567cf31e1206adba050b477c9fa Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Fri, 21 Nov 2025 21:46:18 +0100 Subject: Fix the yellow on yellow for warnings Diagnostic highlight now sets the fg to white and the background to the appropriate color for the diagnostic severity. Before, we could end up with a yellow color for warning as background and a yellow as foreground for a function, which caused unreadable text. Also fix some more cases where re-render is needed. --- src/dged/buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dged') diff --git a/src/dged/buffer.c b/src/dged/buffer.c index 7eb787d..3259534 100644 --- a/src/dged/buffer.c +++ b/src/dged/buffer.c @@ -1395,10 +1395,12 @@ void buffer_get_text_properties_filtered(struct buffer *buffer, } void buffer_clear_text_properties(struct buffer *buffer) { + buffer->needs_render = true; text_clear_properties(buffer->text); } void buffer_clear_text_property_layer(struct buffer *buffer, layer_id layer) { + buffer->needs_render = true; text_clear_property_layer(buffer->text, layer); } -- cgit v1.2.3