+2008-07-23 Chris Allegretta <chrisa@asty.org>
+ * text.c: Reset openfile-> to OTHER after an undo or redo so we don't mistakenly
+ mistakenly think this is an update when it's really an add. Also
+ Fix an extra ; after an if statement which makes nano try to free a struct which
+ may be NULL
+
GNU nano 2.1.3 - 2008.08.04
2008-07-23 Chris Allegretta <chrisa@asty.org>
* configure.ac: Add ncursesw dir to include path if lib detected
do_gotolinecolumn(u->lineno, u->begin, FALSE, FALSE, FALSE, TRUE);
statusbar(_("Undid action (%s)"), undidmsg);
openfile->current_undo = openfile->current_undo->next;
-
+ openfile->last_action = OTHER;
}
void do_redo(void)
statusbar(_("Redid action (%s)"), undidmsg);
openfile->current_undo = u;
+ openfile->last_action = OTHER;
}
#endif /* !NANO_TINY */
fs->undotop = fs->undotop->next;
if (u2->strdata != NULL)
free(u2->strdata);
- if (u2->cutbuffer);
+ if (u2->cutbuffer)
free_filestruct(u2->cutbuffer);
free(u2);
}