]> gitweb.ps.run Git - iftint/commitdiff
linux newline
authorPatrick <patrick.schoenberger@posteo.de>
Sun, 24 Sep 2023 12:11:39 +0000 (14:11 +0200)
committerPatrick <patrick.schoenberger@posteo.de>
Sun, 24 Sep 2023 12:11:39 +0000 (14:11 +0200)
main3.c

diff --git a/main3.c b/main3.c
index 4209d9cd7cc329d625baa27ca7175a629b905d77..16edbacb1e05a059b021530614d6fb0079ea0c91 100644 (file)
--- a/main3.c
+++ b/main3.c
@@ -400,7 +400,7 @@ Node *GetNode(InputAction actions[NK_COUNT][IN_COUNT]) {
             if (c == KEY_BACKSPACE1 || c == KEY_BACKSPACE2) {
                 s[slen-1] = '\0';
             }
-            else if (c == 13) {
+            else if (c == '\n' || c == '\r') {
                 mode = Mode_Normal;
             }
             else if (slen < STR_SIZE) {