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
master
Chris Allegretta 2001-10-02 00:24:37 +00:00
parent 1e36fd8f69
commit 222a0863fa
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,10 @@ CVS code -
by DLR. by DLR.
- Call do_gotopos from do_alt_spell() to keep position - Call do_gotopos from do_alt_spell() to keep position
consistent when invoking alt speller (DLR). 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: - files.c:
do_writeout() do_writeout()
- Expanded strings to not use %s and ?: to determine - Expanded strings to not use %s and ?: to determine

2
cut.c
View File

@ -180,6 +180,8 @@ void cut_marked_segment(filestruct * top, int top_x, filestruct * bot,
filebot = next; filebot = next;
} else { } else {
filebot = top; filebot = top;
if (top_x > 0)
new_magicline();
} }
} }
if (top->lineno < edittop->lineno) if (top->lineno < edittop->lineno)