Commit 015c7409 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
...@@ -223,7 +223,9 @@ void do_cut_text( ...@@ -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) ...@@ -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 */
......
...@@ -504,7 +504,9 @@ openfilestruct *make_new_opennode(void) ...@@ -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;
} }
......
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