commit 429a5518eaddfdd17893517d9f29f7cd7b3aa45f
parent bf9da287a066eaf022cb96ef7765054dc66b3782
Author: Chris Allegretta <chrisa@asty.org>
Date: Tue, 5 Sep 2000 13:09:56 +0000
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
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git 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
@@ -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