]> git.wh0rd.org Git - nano.git/commitdiff
Whoops, must let check for blowing away cutbuffer get run before exit on cutting...
authorChris Allegretta <chrisa@asty.org>
Mon, 7 Aug 2000 14:58:26 +0000 (14:58 +0000)
committerChris Allegretta <chrisa@asty.org>
Mon, 7 Aug 2000 14:58:26 +0000 (14:58 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@175 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

cut.c
po/nano.pot

diff --git a/cut.c b/cut.c
index ddc9e934f54b7b606f3d0faa19c110a189a22946..8a66064c6452c94bfef3afeda9c04aaaca51d892 100644 (file)
--- 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))
index 513b61e6c6c55be1c64f3326676439f5e4a69714..d49cc4c6086efb9cd6b32d309a3c3410b7377c85 100644 (file)
@@ -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"