From 86c6cd17258eee41bdd5d025ae894dd7a103fbd1 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Tue, 3 Feb 2015 22:49:57 +0000
Subject: [PATCH] 2015-02-03 Alex Henrie <alexhenrie24@gmail.com>         *
 src/cut.c (do_cut_text): Make sure to set modified even when         using
 --enable-tiny.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5112 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog | 4 ++++
 src/cut.c | 5 ++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ccf5216c..38e84c44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-03 Alex Henrie <alexhenrie24@gmail.com>
+	* src/cut.c (do_cut_text): Make sure to set modified even when
+	using --enable-tiny.
+
 2015-02-01  Kamil Dudka  <kdudka@redhat.com>
 	* src/files.c (write_lockfile): Avoid writing uninitialized bytes to
 	the lock file -- a simple null_at() would not initialize the buffer.
diff --git a/src/cut.c b/src/cut.c
index b2b77b09..7c07cc8c 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -219,10 +219,9 @@ void do_cut_text(
 
     /* Leave the text in the cutbuffer, and mark the file as
      * modified. */
-    if (!copy_text) {
-	set_modified();
-    }
+    if (!copy_text)
 #endif /* !NANO_TINY */
+	set_modified();
 
     /* Update the screen. */
     edit_refresh_needed = TRUE;
-- 
GitLab