nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit e51c95fa7b733233bbb4490089f2c8a999136ea4
parent 5146fec04c9830c514ab921355f8f2fb4fd88f44
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sun, 10 Dec 2000 05:54:27 +0000

uncutting at filebot magic line fix and new_magicline totsize increment


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@401 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 5+++++
Mcut.c | 1+
Mutils.c | 1+
3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -4,6 +4,8 @@ CVS code - - Fix renumbering bug when uncutting marked test at filebot. - Fix screen not being displayed when we are uncutting marked text at editbot (Bug discovered by Ken Tyler). + - Fix magic line not getting created when (you guessed it) + uncutting marked text at filebot (Ryan Krebs). - files.c: write_file() - Change open call flags, basically copy joe's way of doing it so @@ -11,6 +13,9 @@ CVS code - - nano.c: renumber() - Dont stupidly assign the value of prev->lineno if prev == NULL! +- utils.c: + new_magicline() + - Increment totsize!! nano 0.9.23 - 12/08/2000 General diff --git a/cut.c b/cut.c @@ -344,6 +344,7 @@ int do_uncut_text(void) if (editbot == filebot) editbot = newend; filebot = newend; + new_magicline(); } /* Now why don't we update the totsize also */ diff --git a/utils.c b/utils.c @@ -152,6 +152,7 @@ void new_magicline(void) filebot->next->lineno = filebot->lineno + 1; filebot = filebot->next; totlines++; + totsize++; } #ifndef DISABLE_TABCOMP