From: David Lawrence Ramsey Date: Sat, 18 Dec 2004 20:29:42 +0000 (+0000) Subject: cosmetic fixes X-Git-Tag: v1.3.6~216 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4564170c6189d9ac23c4c745f4bf93b227bbaad2;p=nano.git cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/move.c b/src/move.c index 44232067..e3fa3717 100644 --- a/src/move.c +++ b/src/move.c @@ -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(); diff --git a/src/nano.c b/src/nano.c index e1cf6ad7..03111f2a 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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; } }