summaryrefslogtreecommitdiffstats
path: root/linenoise/linenoise.c
diff options
context:
space:
mode:
Diffstat (limited to 'linenoise/linenoise.c')
-rw-r--r--linenoise/linenoise.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index 9869737d..7e22d21f 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -1146,8 +1146,10 @@ static void refresh_multiline(lino_t *l) {
if (rows > l->maxrows)
l->maxrows = rows;
- if (l->need_refresh == 2)
+ if (l->need_refresh == 2) {
+ l->oldrow = nrow;
return;
+ }
/* First step: clear all the lines used before. To do so start by
* going to the last row. */