]> git.wh0rd.org Git - nano.git/commitdiff
More totsize fixes
authorChris Allegretta <chrisa@asty.org>
Sun, 10 Dec 2000 06:03:40 +0000 (06:03 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 10 Dec 2000 06:03:40 +0000 (06:03 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
files.c

index 9be5260e01761c464e458002e7bc7c62c71be977..001e1c89979438db0cad31e6a98a50a9f7b0a287 100644 (file)
--- 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 ff32bbbb1378045bf187488d293fb1922255a43a..ba8511b5048f417cc056782c495f3cf2ffdc3201 100644 (file)
--- 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();