From 5fdd1e5c0112db4c0c8646cc8fbc629bdb83355c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 26 Apr 2021 19:25:17 +0200 Subject: OK --- src/warnings.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/warnings.c') diff --git a/src/warnings.c b/src/warnings.c index b5a7851..8effbb2 100644 --- a/src/warnings.c +++ b/src/warnings.c @@ -35,6 +35,7 @@ void warnings_add(struct context *ctx, const char *fmt, ...) // TODO: Print somewhere else (e.g. next to line) void warnings_print(void) { + gui_unhighlight_name("warning"); for (u32 i = 0; i < WARNING_COUNT; i++) { if (!warnings[i].exists) continue; @@ -42,6 +43,7 @@ void warnings_print(void) /* gui_show_warning(warnings[i].text); */ printf("Line %d:%d: %s\n", warnings[i].ctx.line, warnings[i].ctx.column, warnings[i].text); + gui_highlight(warnings[i].ctx.column, warnings[i].ctx.line, 1, "warning"); } } -- cgit v1.2.3