diff options
Diffstat (limited to 'linenoise')
-rw-r--r-- | linenoise/linenoise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index a48ad4d1..e50eed2e 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -269,6 +269,7 @@ failed: /* Clear the screen. Used to handle ctrl+l */ int lino_clear_screen(lino_t *ls) { + ls->maxrows = 0; return (write(ls->ofd,"\x1b[H\x1b[2J",7) > 0); } |