From 59552151fd51fe3bf2fca31467701d6e73ea1683 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 6 Sep 2017 21:54:17 +1000 Subject: [PATCH] Don't wordwrap on backspace --- utils/magiedit/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 4123d5e..57765a0 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -176,7 +176,7 @@ char *message_editor() { if (ch.chKeyPress == 27) { // got an escape that i shouldnt have stage = 1; - } else */if (ch.chKeyPress == '\r' || strlen(line) >= 73) { + } else */if (ch.chKeyPress == '\r' || (strlen(line) >= 73 && ch.chKeyPress != '\b')) { if (strlen(line) >= 73 && ch.chKeyPress != '\r') { if (position_x == strlen(line)) { strncat(line, &ch.chKeyPress, 1);