diff --git a/src/cut.c b/src/cut.c index 5a2ed54060713f8219c82ce0da6a532baaa32b23..6fda848cd94c7b1d3157ea4a7ab9d59e95ad0a0e 100644 --- a/src/cut.c +++ b/src/cut.c @@ -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 */ diff --git a/src/nano.c b/src/nano.c index 46b631125fe1156c21c8a43483b476690caaafa2..14be33886143ac4a972ef3e31f8adfe7ac61fe1c 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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; }