]> git.wh0rd.org Git - nano.git/commitdiff
small fix for do_justify totsize calculations
authorRobert Siemborski <rjs3@andrew.cmu.edu>
Wed, 17 Jan 2001 03:29:02 +0000 (03:29 +0000)
committerRobert Siemborski <rjs3@andrew.cmu.edu>
Wed, 17 Jan 2001 03:29:02 +0000 (03:29 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
nano.c

index 2016a67a0214a77ef0fd9effb42d894dcb9aaacd..5118fc55cc025822a4de83e5c019d1860abf5463 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -57,6 +57,9 @@ General
   die_too_small()
        - Function to print the window too small error message, avoids
          repeated string defs and globals.
+  do_justify()
+       - Small fix for totsize calculation (Rob)
+
 - fi.po:
        - Update by Pauli Virtanen.
 
diff --git a/nano.c b/nano.c
index 328ac1be084587e506de9a865185412c42be4a4d..2517ba25385fbdafb93bf5b405e5b18247d70b73 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -1818,8 +1818,6 @@ int do_justify(void)
        delete_node(tmpnode);
     }
 
-    totsize -= strlen(current->data);
-
     justify_format(current->data);
 
     slen = strlen(current->data);