Fix for empty messages

This commit is contained in:
Andrew Pamment
2018-09-02 18:23:47 +10:00
parent 4fa7236270
commit db4eeff587
2 changed files with 4 additions and 1 deletions

View File

@@ -738,7 +738,7 @@ char *message_editor() {
}
return return_body;
} else if (ch.chKeyPress != '\n') {
} else if (ch.chKeyPress != '\n' && ch.chKeyPress != 0x1b) {
if (position_x >= strlen(line)) {
strncat(line, &ch.chKeyPress, 1);
} else {