From 0286ba436e1ee92fd3b0459d5d6afa513e9804b0 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Mon, 7 Aug 2000 14:58:26 +0000
Subject: [PATCH] Whoops, must let check for blowing away cutbuffer get run
 before exit on cutting magic line

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@175 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 cut.c       | 7 ++++++-
 po/nano.pot | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/cut.c b/cut.c
index ddc9e934..8a66064c 100644
--- a/cut.c
+++ b/cut.c
@@ -137,7 +137,7 @@ int do_cut_text(void)
 #endif
 
     check_statblank();
-    if (fileptr == NULL || fileptr->data == NULL || fileptr == filebot)
+    if (fileptr == NULL || fileptr->data == NULL)
 	return 0;
 
     tmp = fileptr->next;
@@ -150,6 +150,11 @@ int do_cut_text(void)
 	fprintf(stderr, _("Blew away cutbuffer =)\n"));
 #endif
     }
+
+    /* Must let cutbuffer get blown away first before we do this... */
+    if (fileptr == filebot)	
+	return 0;
+
 #ifndef NANO_SMALL
     if (ISSET(CUT_TO_END) && !ISSET(MARK_ISSET)) {
 	if (current_x == strlen(current->data))
diff --git a/po/nano.pot b/po/nano.pot
index 513b61e6..d49cc4c6 100644
--- a/po/nano.pot
+++ b/po/nano.pot
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-08-07 10:44-0400\n"
+"POT-Creation-Date: 2000-08-07 11:03-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
-- 
GitLab