Commit e8d505ba authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix still *more* backup_lines() breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3140 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 5d6f1279
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1002,7 +1002,7 @@ filestruct *backup_lines(filestruct *first_line, size_t par_len)
top = openfile->current->prev;
else
top = openfile->current;
for (i = par_len; i > 0; i--) {
for (i = par_len; i > 0 && top != NULL; i--) {
if (top->lineno == fl_lineno_save)
first_line = top;
if (top->lineno == edittop_lineno_save)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment