]> git.wh0rd.org Git - nano.git/commitdiff
cosmetic fixes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 18 Dec 2004 20:29:42 +0000 (20:29 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 18 Dec 2004 20:29:42 +0000 (20:29 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/move.c
src/nano.c

index 44232067fca911148712bcaf8cdddd136f0f015c..e3fa371733b678423e84de6011336ce30efb5043 100644 (file)
@@ -56,13 +56,14 @@ void do_home(void)
     size_t pww_save = placewewant;
 #ifndef NANO_SMALL
     if (ISSET(SMART_HOME)) {
-       size_t current_save_x = current_x;
+       size_t current_x_save = current_x;
 
        for (current_x = 0; isblank(current->data[current_x]) &&
                current->data[current_x] != '\0'; current_x++)
            ;
 
-       if (current_x == current_save_x || current->data[current_x] == '\0')
+       if (current_x == current_x_save ||
+               current->data[current_x] == '\0')
            current_x = 0;
 
        placewewant = xplustabs();
index e1cf6ad7037cbf9a63d2b5bc8b574c31c8309a7b..03111f2aca0814beadec4ae7e0bef94ee68e5c1c 100644 (file)
@@ -1492,7 +1492,7 @@ bool do_wrap(filestruct *inptr)
        /* +1 for the space between after_break and wrap_line. */
        if ((new_line_len + 1 + wrap_line_len) <= fill) {
            wrapping = TRUE;
-           new_line_len += (1 + wrap_line_len);
+           new_line_len += 1 + wrap_line_len;
        }
     }