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-d3aeb78583b8master
parent
d31ddb789f
commit
015c74093a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue