summaryrefslogtreecommitdiffstats
path: root/linenoise
diff options
context:
space:
mode:
Diffstat (limited to 'linenoise')
-rw-r--r--linenoise/linenoise.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index 081533a8..afc4e187 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -1270,6 +1270,7 @@ static void move_cursor_multiline(lino_t *l, int npos)
(void) lino_os.puts_fn(l->tty_ofs, ab.b);
ab_free(&ab);
l->dpos = npos;
+ l->oldrow = nrow;
}
static void move_cursor(lino_t *l, int npos)