From 1013e14a87049c545fdb78478d14de254c1da765 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Thu, 27 Jul 2000 04:31:52 +0000
Subject: [PATCH] Updated BUGS

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

diff --git a/BUGS b/BUGS
index 0d5eca01..2e0b1965 100644
--- a/BUGS
+++ b/BUGS
@@ -52,4 +52,5 @@
 - In search/replace code there is too much refreshing in bottomwin (26)
 - In replace, there is no way to accept the default replace string. (27)
 - Using nano -t, user can not exit until a filename is given via ^O. (30)
-- totsize problems still abound in do_justify (31)
+- totsize problems still abound in do_justify (33)
+- Using -k cut text is not pasted properly. (34)
diff --git a/cut.c b/cut.c
index 87c1b44b..290309a1 100644
--- a/cut.c
+++ b/cut.c
@@ -56,7 +56,6 @@ void add_to_cutbuffer(filestruct * inptr)
 
     inptr->next = NULL;
     cutbottom = inptr;
-    dump_buffer(cutbuffer);
 }
 
 #ifndef NANO_SMALL
@@ -159,6 +158,7 @@ int do_cut_text(void)
 	       cutbuffer, not delete it and forget about it. */
 	    do_delete();
 	    SET(KEEP_CUTBUFFER);
+	    marked_cut = 2;
 	    return 1;
 	}
 	else
@@ -212,6 +212,7 @@ int do_cut_text(void)
 	    edit_refresh();
 	else
 	    edit_update(current);
+
 	return 1;
 #else
     if (0) {
@@ -298,7 +299,7 @@ int do_uncut_text(void)
 
     /* Hook newbuf into fileptr */
 #ifndef NANO_SMALL
-    if (marked_cut == 1) {
+    if (marked_cut) {
 	/* If there's only one line in the cutbuffer */
 	if (cutbuffer->next == NULL) {
 	    tmpstr =
diff --git a/po/nano.pot b/po/nano.pot
index 82a3128d..5dafffd2 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-07-26 23:51-0400\n"
+"POT-Creation-Date: 2000-07-27 00:27-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"
@@ -19,7 +19,7 @@ msgstr ""
 msgid "add_to_cutbuffer called with inptr->data = %s\n"
 msgstr ""
 
-#: cut.c:150
+#: cut.c:149
 msgid "Blew away cutbuffer =)\n"
 msgstr ""
 
-- 
GitLab