Allow current undo code to compile with NANO_TINY

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4289 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2008-08-02 14:39:42 +00:00
parent d31ddb789f
commit 015c74093a
2 changed files with 6 additions and 0 deletions

View File

@ -223,7 +223,9 @@ void do_cut_text(
/* Move text from the current filestruct into the cutbuffer. */ /* Move text from the current filestruct into the cutbuffer. */
void do_cut_text_void(void) void do_cut_text_void(void)
{ {
#ifndef NANO_TINY
add_undo(CUT, openfile); add_undo(CUT, openfile);
#endif
do_cut_text( do_cut_text(
#ifndef NANO_TINY #ifndef NANO_TINY
FALSE, FALSE, FALSE FALSE, FALSE, FALSE
@ -242,7 +244,9 @@ void do_copy_text(void)
/* Cut from the current cursor position to the end of the file. */ /* Cut from the current cursor position to the end of the file. */
void do_cut_till_end(void) void do_cut_till_end(void)
{ {
#ifndef NANO_TINY
add_undo(CUTTOEND, openfile); add_undo(CUTTOEND, openfile);
#endif
do_cut_text(FALSE, TRUE, FALSE); do_cut_text(FALSE, TRUE, FALSE);
} }
#endif /* !NANO_TINY */ #endif /* !NANO_TINY */

View File

@ -504,7 +504,9 @@ openfilestruct *make_new_opennode(void)
newnode->filebot = NULL; newnode->filebot = NULL;
newnode->edittop = NULL; newnode->edittop = NULL;
newnode->current = NULL; newnode->current = NULL;
#ifndef NANO_TINY
newnode->last_action = OTHER; newnode->last_action = OTHER;
#endif
return newnode; return newnode;
} }