From e9eabdcdcb7caaf355fae359849f8e31cd4497fd Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 3 Mar 2018 16:41:33 +0100 Subject: [PATCH] undo: when redoing, don't try to find a line number that might not exist This fixes https://savannah.gnu.org/bugs/?53272. --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.16.2