Fix for empty messages
This commit is contained in:
parent
4fa7236270
commit
db4eeff587
@ -954,6 +954,9 @@ void unmangle_ansi(char *body, int len, char **body_out, int *body_len) {
|
||||
if (body[i] == '[') {
|
||||
state = 2;
|
||||
continue;
|
||||
} else {
|
||||
state = 0;
|
||||
continue;
|
||||
}
|
||||
} else if (state == 2) {
|
||||
param_count = 0;
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user