Skip to content

Commit 370a4e7

Browse files
committed
Fix up
1 parent ef140e4 commit 370a4e7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/staembed.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "tophat.h"
1+
#include "tophat.h"
22
const char *th_em_modulesrc[] = {
33
"\n"
44
"import (\n"

src/window.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ event(const sapp_event *ev)
123123
thg->mouse = (th_vf2){.x = ev->mouse_x, .y = ev->mouse_y};
124124
break;
125125
case SAPP_EVENTTYPE_CHAR:
126-
if (ev->char_code < ' ')
126+
if (ev->char_code < ' ' || ev->char_code == 127 /* DEL character */)
127127
break;
128128

129129
thg->input_string_len = th_utf8_encode(thg->input_string, ev->char_code);

0 commit comments

Comments
 (0)