From 429a5518eaddfdd17893517d9f29f7cd7b3aa45f Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Tue, 5 Sep 2000 13:09:56 +0000
Subject: [PATCH] Fix to cut.c for cutting entire file with marker

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@206 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog | 6 ++++++
 cut.c     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index cdcb9eee..1ad77bb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
 CVS code -
+- cut.c:
+  do_cut_text()
+	- Don't immediately abort if we're on filebot and the marker is
+	  set (fixes unable to select and cut entire file bug,
+	  discovered by Ken Tyler).
+
 nano-0.9.17 - 09/04/2000
 - General
 	- New shortcuts to toggle certain options that are normally only
diff --git a/cut.c b/cut.c
index 8a66064c..d238595c 100644
--- a/cut.c
+++ b/cut.c
@@ -152,7 +152,7 @@ int do_cut_text(void)
     }
 
     /* Must let cutbuffer get blown away first before we do this... */
-    if (fileptr == filebot)	
+    if (fileptr == filebot && !ISSET(MARK_ISSET))	
 	return 0;
 
 #ifndef NANO_SMALL
-- 
GitLab