This commit is contained in:
Justin M. Keyes
2017-01-12 16:40:28 +01:00
parent 42c922b32c
commit b5e8e2f20d
3 changed files with 31 additions and 30 deletions

View File

@@ -1063,11 +1063,12 @@ void ml_recover(void)
if (!cannot_open) {
line_count = pp->pb_pointer[idx].pe_line_count;
if (readfile(curbuf->b_ffname, NULL, lnum,
pp->pb_pointer[idx].pe_old_lnum - 1,
line_count, NULL, 0) != OK)
cannot_open = TRUE;
else
pp->pb_pointer[idx].pe_old_lnum - 1, line_count,
NULL, 0) != OK) {
cannot_open = true;
} else {
lnum += line_count;
}
}
if (cannot_open) {
++error;