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
parent d31ddb78
Showing with 6 additions and 0 deletions
+6 -0
......@@ -223,7 +223,9 @@ void do_cut_text(
/* Move text from the current filestruct into the cutbuffer. */
void do_cut_text_void(void)
{
#ifndef NANO_TINY
add_undo(CUT, openfile);
#endif
do_cut_text(
#ifndef NANO_TINY
FALSE, FALSE, FALSE
......@@ -242,7 +244,9 @@ void do_copy_text(void)
/* Cut from the current cursor position to the end of the file. */
void do_cut_till_end(void)
{
#ifndef NANO_TINY
add_undo(CUTTOEND, openfile);
#endif
do_cut_text(FALSE, TRUE, FALSE);
}
#endif /* !NANO_TINY */
......
......@@ -504,7 +504,9 @@ openfilestruct *make_new_opennode(void)
newnode->filebot = NULL;
newnode->edittop = NULL;
newnode->current = NULL;
#ifndef NANO_TINY
newnode->last_action = OTHER;
#endif
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