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
This commit is contained in:
Chris Allegretta 2000-09-05 13:09:56 +00:00
parent bf9da287a0
commit 429a5518ea
2 changed files with 7 additions and 1 deletions

View File

@ -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

2
cut.c
View File

@ -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