summaryrefslogtreecommitdiff
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
parent7c5ca21fdd5fb3448376e9491528487ddb5db076 (diff)
don't show version, help message when build window is open
-rw-r--r--README.md1
-rw-r--r--buffer.c2
-rw-r--r--control2
-rw-r--r--main.c14
-rw-r--r--ted.h2
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.
<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
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.