More totsize fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2000-12-10 06:03:40 +00:00
parent e51c95fa7b
commit 321590a59d
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,8 @@ CVS code -
- Dont stupidly assign the value of prev->lineno if prev == NULL! - Dont stupidly assign the value of prev->lineno if prev == NULL!
- utils.c: - utils.c:
new_magicline() 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 nano 0.9.23 - 12/08/2000
General General

View File

@ -194,6 +194,7 @@ int read_file(int fd, char *filename)
} else if (fileptr->next == NULL) { } else if (fileptr->next == NULL) {
filebot = fileptr; filebot = fileptr;
new_magicline(); new_magicline();
totsize--;
/* Update the edit buffer */ /* Update the edit buffer */
load_file(); load_file();