diff options
author | pommicket <pommicket@gmail.com> | 2023-08-01 13:00:21 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-01 13:00:21 -0400 |
commit | 2db69f3bf6b9d086a364db76e677cf22874c90e8 (patch) | |
tree | f46d6562dded0b1ef1e2cc926ff22d10951f239f | |
parent | 7c5ca21fdd5fb3448376e9491528487ddb5db076 (diff) |
don't show version, help message when build window is open
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | buffer.c | 2 | ||||
-rw-r--r-- | control | 2 | ||||
-rw-r--r-- | main.c | 14 | ||||
-rw-r--r-- | ted.h | 2 |
5 files changed, 12 insertions, 9 deletions
@@ -321,6 +321,7 @@ Then, open windows\_installer\\ted\\ted.sln, and build. <tr><td>2.4</td> <td>Font overhaul — allow multiple fonts, and variable-width fonts.</td> <td>2023 Jul 19</td></tr> <tr><td>2.4.1</td> <td>JSX highlighting fix, Windows DPI awareness</td> <td>2023 Jul 20</td></tr> <tr><td>2.4.2</td> <td>Fix font absolute paths</td> <td>2023 Jul 21</td></tr> +<tr><td>2.4.3</td> <td>Some font related fixes</td> <td>2023 Aug 1</td></tr> </table> ## License @@ -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; } } @@ -1,5 +1,5 @@ Package: ted -Version: 2.4.2 +Version: 2.4.3 Section: text Priority: optional Architecture: amd64 @@ -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); + } } } @@ -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. |