summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-01 13:00:21 -0400
committerpommicket <pommicket@gmail.com>2023-08-01 13:00:21 -0400
commit2db69f3bf6b9d086a364db76e677cf22874c90e8 (patch)
treef46d6562dded0b1ef1e2cc926ff22d10951f239f /main.c
parent7c5ca21fdd5fb3448376e9491528487ddb5db076 (diff)
don't show version, help message when build window is open
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 8 insertions, 6 deletions
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);
+ }
}
}