From 015c74093ac8dc53d711436305ec2ea35eb22d95 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Sat, 2 Aug 2008 14:39:42 +0000
Subject: [PATCH] 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
---
 src/cut.c  | 4 ++++
 src/nano.c | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/src/cut.c b/src/cut.c
index 5a2ed540..6fda848c 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 46b63112..14be3388 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;
 }
-- 
GitLab