aboutsummaryrefslogtreecommitdiffstats
path: root/libterminput_marshal_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'libterminput_marshal_input.c')
-rw-r--r--libterminput_marshal_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libterminput_marshal_input.c b/libterminput_marshal_input.c
index 9949838..4064956 100644
--- a/libterminput_marshal_input.c
+++ b/libterminput_marshal_input.c
@@ -3,13 +3,13 @@
int
-libterminput_marshal_input(struct libterminput_marshaller *how, const union libterminput_input *what) /* TODO test */
+libterminput_marshal_input(struct libterminput_marshaller *how, const union libterminput_input *what)
{
enum libterminput_type type = what->type;
if (how->store(how, &type, sizeof(type)))
return -1;
if (type == LIBTERMINPUT_NONE) {
- if (what->keypress.key == LIBTERMINPUT_SYMBOL)
+ if (what->keypress.key != LIBTERMINPUT_SYMBOL)
type = LIBTERMINPUT_KEYPRESS;
if (how->store(how, &type, sizeof(type)))
return -1;