commit e9eabdcdcb7caaf355fae359849f8e31cd4497fd
parent a1be8b6a19252f32fe3116fbe0dada05567d9ee6
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 3 Mar 2018 16:41:33 +0100
undo: when redoing, don't try to find a line number that might not exist
This fixes https://savannah.gnu.org/bugs/?53272.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;