From: Chris Allegretta Date: Sun, 10 Dec 2000 06:03:40 +0000 (+0000) Subject: More totsize fixes X-Git-Tag: v0.9.24~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=321590a59d283b137b1e77bf57afe58deff7bccc;p=nano.git More totsize fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 9be5260e..001e1c89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,7 +15,8 @@ CVS code - - Dont stupidly assign the value of prev->lineno if prev == NULL! - utils.c: new_magicline() - - Increment totsize!! + - Increment totsize!! We decrement it when we've read a file, + everywhere else it should automatically be incremented nano 0.9.23 - 12/08/2000 General diff --git a/files.c b/files.c index ff32bbbb..ba8511b5 100644 --- a/files.c +++ b/files.c @@ -194,6 +194,7 @@ int read_file(int fd, char *filename) } else if (fileptr->next == NULL) { filebot = fileptr; new_magicline(); + totsize--; /* Update the edit buffer */ load_file();