]> git.wh0rd.org Git - nano.git/commitdiff
fix renumber_all() as well as renumber()
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 8 Jul 2005 01:11:27 +0000 (01:11 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 8 Jul 2005 01:11:27 +0000 (01:11 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2824 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index 15b5cf32daeef7dd2af2a2cc40467ff6791d5d80..618ac19318b4d646ef8eae67440ddce17a860649 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,7 +5,7 @@ CVS code -
   shortcut_init()
        - Simplify wording of nano_gotoline_msg. (Jordi)
 - nano.c:
-  renumber()
+  renumber_all(), renumber()
        - When renumbering, properly use a ssize_t instead of an int.
          (DLR)
   do_verbatim_input()
index 87943c2b464f48fe4f28697d934b3f7d588490a2..2e89a02c656f1a693bf1be82c1012a5f06bfc4d7 100644 (file)
@@ -954,12 +954,12 @@ void copy_from_filestruct(filestruct *file_top, filestruct *file_bot)
 void renumber_all(void)
 {
     filestruct *temp;
-    int i = 1;
+    ssize_t line = 1;
 
     assert(fileage == NULL || fileage != fileage->next);
 
     for (temp = fileage; temp != NULL; temp = temp->next)
-       temp->lineno = i++;
+       temp->lineno = line++;
 }
 
 void renumber(filestruct *fileptr)