commit 222a0863fabdd4d27bb9ea924b153e6039addcc9
parent 1e36fd8f699f7b4954b7c61c6129521cb4ce3078
Author: Chris Allegretta <chrisa@asty.org>
Date: Tue, 2 Oct 2001 00:24:37 +0000
cut.c:cut_marked_segment() - Add magic line when cutting a selection including filebot (discovered by DLR, fixed by DLR & Chris)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@805 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -26,6 +26,10 @@ CVS code -
by DLR.
- Call do_gotopos from do_alt_spell() to keep position
consistent when invoking alt speller (DLR).
+- cut.c:
+ cut_marked_segment()
+ - Add magic line when cutting a selection including filebot
+ (discovered by DLR, fixed by DLR & Chris)
- files.c:
do_writeout()
- Expanded strings to not use %s and ?: to determine
diff --git a/cut.c b/cut.c
@@ -180,6 +180,8 @@ void cut_marked_segment(filestruct * top, int top_x, filestruct * bot,
filebot = next;
} else {
filebot = top;
+ if (top_x > 0)
+ new_magicline();
}
}
if (top->lineno < edittop->lineno)