summaryrefslogtreecommitdiffstats
path: root/linenoise/linenoise.c
diff options
context:
space:
mode:
Diffstat (limited to 'linenoise/linenoise.c')
-rw-r--r--linenoise/linenoise.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index 2ba472f5..a48ad4d1 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -1976,6 +1976,7 @@ static int edit(lino_t *l, const char *prompt)
disable_raw_mode(l);
raise(SIGTSTP);
enable_raw_mode(l);
+ l->maxrows = 0;
l->dpos = dpos;
l->need_refresh = 1;
}