undo: when redoing, don't try to find a line number that might not exist

This fixes https://savannah.gnu.org/bugs/?53272.
master
Benno Schulenberg 2018-03-03 16:41:33 +01:00
parent a1be8b6a19
commit e9eabdcdcb
1 changed files with 1 additions and 1 deletions

View File

@ -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;