treesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorPatrick2023-09-24 14:11:39 +0200
committerPatrick2023-09-24 14:11:39 +0200
commitfb25267a5ac29fbb5a483a2f29b4818937456250 (patch)
treed261d4f763a5cc5563163fa00e0f62595c04aacf
parent3f196f89f7864f818cfc782b0db81c639156aa84 (diff)
downloadiftint-fb25267a5ac29fbb5a483a2f29b4818937456250.tar.gz
iftint-fb25267a5ac29fbb5a483a2f29b4818937456250.zip
linux newline
-rw-r--r--main3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main3.c b/main3.c
index 4209d9c..16edbac 100644
--- 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) {