From 57aff04e70229ba63f582a74f3db01bc552cd208 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 3 Oct 2001 01:53:09 +0000 Subject: [PATCH] Add and fix bug #66 (David Lawrence Ramsey) git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@824 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- BUGS | 3 +++ ChangeLog | 6 +++++- cut.c | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/BUGS b/BUGS index ff4b277d..1d5654bb 100644 --- a/BUGS +++ b/BUGS @@ -124,6 +124,9 @@ (Jordi Mallach) [FIXED]. - Cutting one line of text cause the screen to recenter the line (reported and fixed by David Lawrence Ramsey) (65) [FIXED]. +- When cutting marked text including the bottom of the file, a new + "magic line" is not created" (reported by David Lawrence + Ramsey, fixed by David Lawrence Ramsey & Chris) (66) [FIXED]. ** Open BUGS ** diff --git a/ChangeLog b/ChangeLog index a97ce011..a765faaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,7 +2,11 @@ CVS code - - cut.c: do_cut_text() - Don't recenter the line when cutting one line (David Lawrence - Ramsey) (Bug #65). + Ramsey) (BUG #65). + cut_marked_segment() + - Add magic line when cutting a selection including filebot + (discovered by David Lawrence Ramsey, fixed by DLR & Chris, + fixes BUG #66). - winio.c: - Added David Lawrence Ramsey to credits. - po/nl.po: diff --git a/cut.c b/cut.c index 55e19481..2dd8697a 100644 --- a/cut.c +++ b/cut.c @@ -127,6 +127,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