summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-18 20:54:07 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-18 20:54:07 -0500
commit8a4984e0e15fcfb0be6db242ab3f60325b80abd8 (patch)
treeb71eb3ec8e715164a9347cb6ce7d6d83298309d0 /main.c
parent530001a433c847b40d109d08cd8ff0958efdca1c (diff)
bug fixes, narrow file list based on search term
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3a42e87..3c05744 100644
--- a/main.c
+++ b/main.c
@@ -321,7 +321,7 @@ int main(int argc, char **argv) {
case SDL_TEXTINPUT: {
char *text = event.text.text;
if (buffer
- && key_modifier == 0) // unfortunately, some key combinations like ctrl+minus still register as a "-" text input event
+ && (key_modifier & ~KEY_MODIFIER_SHIFT) == 0) // unfortunately, some key combinations like ctrl+minus still register as a "-" text input event
buffer_insert_utf8_at_cursor(buffer, text);
} break;
}