diff --git a/src/text.c b/src/text.c index e80c09c9..ce5e9bff 100644 --- a/src/text.c +++ b/src/text.c @@ -866,7 +866,7 @@ void do_redo(void) return; } - f = fsfromline(u->mark_begin_lineno); + f = fsfromline(u->type == INSERT ? 1 : u->mark_begin_lineno); if (!f) return;