Browse Source

Fix odd history scrolling with oversized lines

K. Lange 4 years ago
parent
commit
44cdeaef06
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/rline_exp.c

+ 2 - 0
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();