mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
Minor, simplify
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
7f7bb5b45c
commit
2ec55cc9f1
@ -172,7 +172,7 @@ static void tty_put(const char c)
|
||||
return;
|
||||
|
||||
Screen[ScreenCount] = c;
|
||||
if (++ScreenCount >= ScreenSize - 1) {
|
||||
if (++ScreenCount > ScreenSize) {
|
||||
ScreenSize += SCREEN_INC;
|
||||
Screen = realloc(Screen, sizeof(char) * ScreenSize);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user