summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-06-13 01:07:27 +0200
committerBram Moolenaar <Bram@vim.org>2011-06-13 01:07:27 +0200
commit986a0039cb159446796d2e56546649465c34cbfc (patch)
treee159da98cd595f31ab97dbecbd914ae241dd6285 /src/memline.c
parentf7befa9f1db3db1863aac25e123cd8d5e8c8c35a (diff)
downloadvim-git-986a0039cb159446796d2e56546649465c34cbfc.tar.gz
updated for version 7.3.216v7.3.216
Problem: When recovering a file a range of lines is missing. (Charles Jie) Solution: Reset the index when advancing to the next pointer block. Add a test to verify recovery works.
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/memline.c b/src/memline.c
index 547b55089..8201a0120 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1507,6 +1507,7 @@ ml_recover()
bnum = pp->pb_pointer[idx].pe_bnum;
line_count = pp->pb_pointer[idx].pe_line_count;
page_count = pp->pb_pointer[idx].pe_page_count;
+ idx = 0;
continue;
}
}