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 --- README.md | 1 + buffer.c | 2 +- control | 2 +- main.c | 14 ++++++++------ ted.h | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 75aa0a8..bc5d9e2 100644 --- a/README.md +++ b/README.md @@ -321,6 +321,7 @@ Then, open windows\_installer\\ted\\ted.sln, and build. 2.4 Font overhaul — allow multiple fonts, and variable-width fonts. 2023 Jul 19 2.4.1 JSX highlighting fix, Windows DPI awareness 2023 Jul 20 2.4.2 Fix font absolute paths 2023 Jul 21 +2.4.3 Some font related fixes 2023 Aug 1 ## License diff --git a/buffer.c b/buffer.c index 2bc0efe..df9f7f6 100644 --- a/buffer.c +++ b/buffer.c @@ -800,7 +800,7 @@ static void buffer_render_char(TextBuffer *buffer, Font *font, TextRenderState * state->x = tab_stop; } break; default: - text_char_with_state(font, state, c); + text_char_with_state(font, state, c); break; } } diff --git a/control b/control index d8fdafa..380315f 100644 --- a/control +++ b/control @@ -1,5 +1,5 @@ Package: ted -Version: 2.4.2 +Version: 2.4.3 Section: text Priority: optional Architecture: amd64 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); + } } } diff --git a/ted.h b/ted.h index f6c0e78..2cbf305 100644 --- a/ted.h +++ b/ted.h @@ -28,7 +28,7 @@ extern "C" { #include "sdl-inc.h" /// Version number -#define TED_VERSION "2.4.2" +#define TED_VERSION "2.4.3" /// Version string #define TED_VERSION_FULL "ted v. " TED_VERSION /// Maximum path size ted handles. -- cgit v1.2.3