diff options
author | Marvin Borner | 2021-04-26 19:25:17 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-26 19:25:17 +0200 |
commit | 5fdd1e5c0112db4c0c8646cc8fbc629bdb83355c (patch) | |
tree | 34179f19326df235588cb0398bf5271ec0dd58b4 /src/warnings.c | |
parent | d0ca7ba7dc479691ecb0f794293c3bb8613a8521 (diff) |
OK
Diffstat (limited to 'src/warnings.c')
-rw-r--r-- | src/warnings.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } } |