From 2db69f3bf6b9d086a364db76e677cf22874c90e8 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 1 Aug 2023 13:00:21 -0400 Subject: don't show version, help message when build window is open --- main.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index ec6d16b..0045e98 100644 --- a/main.c +++ b/main.c @@ -1011,12 +1011,14 @@ int main(int argc, char **argv) { usages_frame(ted); } else { autocomplete_close(ted); - text_utf8_anchored(font, "ted v. " TED_VERSION, - window_width - padding, window_height - padding, - ted_active_color(ted, COLOR_COMMENT), ANCHOR_BOTTOM_RIGHT); - text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", - window_width * 0.5f, window_height * 0.5f, ted_active_color(ted, COLOR_COMMENT), ANCHOR_MIDDLE); - text_render(font); + if (!ted->build_shown) { + text_utf8_anchored(font, "ted v. " TED_VERSION, + window_width - padding, window_height - padding, + ted_active_color(ted, COLOR_COMMENT), ANCHOR_BOTTOM_RIGHT); + text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", + window_width * 0.5f, window_height * 0.5f, ted_active_color(ted, COLOR_COMMENT), ANCHOR_MIDDLE); + text_render(font); + } } } -- cgit v1.2.3