mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
Merge "main/asterisk.c: ast_el_read_char"
This commit is contained in:
+3
-2
@@ -2708,11 +2708,12 @@ static int ast_el_read_char(EditLine *editline, char *cp)
|
||||
|
||||
console_print(buf, 0);
|
||||
|
||||
if ((res < EL_BUF_SIZE - 1) && ((buf[res-1] == '\n') || (buf[res-2] == '\n'))) {
|
||||
if ((res < EL_BUF_SIZE - 1) && ((buf[res-1] == '\n') || (res >= 2 && buf[res-2] == '\n'))) {
|
||||
*cp = CC_REFRESH;
|
||||
return(1);
|
||||
} else
|
||||
} else {
|
||||
lastpos = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user