summaryrefslogtreecommitdiff
path: root/src/dged
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2025-11-21 21:46:18 +0100
committerAlbert Cervin <albert@acervin.com>2025-11-21 21:46:18 +0100
commit3940a20f62baf567cf31e1206adba050b477c9fa (patch)
tree4437c6b5ad20b264d3576717923d7f1f5a9c12f5 /src/dged
parentfd5683cdc61efa37a1be7b94901f75c5409d2297 (diff)
downloaddged-3940a20f62baf567cf31e1206adba050b477c9fa.tar.gz
dged-3940a20f62baf567cf31e1206adba050b477c9fa.tar.xz
dged-3940a20f62baf567cf31e1206adba050b477c9fa.zip
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.
Diffstat (limited to 'src/dged')
-rw-r--r--src/dged/buffer.c2
1 files changed, 2 insertions, 0 deletions
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);
}