From 222a0863fabdd4d27bb9ea924b153e6039addcc9 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Tue, 2 Oct 2001 00:24:37 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ cut.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 90690987..ede5427b 100644 --- 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 index f37d151f..d69afd30 100644 --- 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) -- 2.39.5