From 44cdeaef06b23bd3a2b0aebb61a1bee6a33e9525 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 14 Sep 2018 12:39:18 +0900 Subject: [PATCH] Fix odd history scrolling with oversized lines --- lib/rline_exp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rline_exp.c b/lib/rline_exp.c index 5b2d6676..3bce57e4 100644 --- a/lib/rline_exp.c +++ b/lib/rline_exp.c @@ -920,6 +920,7 @@ static void history_previous(void) { } /* Set cursor at end */ column = the_line->actual; + offset = 0; recalculate_syntax(the_line); render_line(); place_cursor_actual(); @@ -962,6 +963,7 @@ static void history_next(void) { } /* Set cursor at end */ column = the_line->actual; + offset = 0; recalculate_syntax(the_line); render_line(); place_cursor_actual();