cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-12-18 20:29:42 +00:00
parent 6eea1473b4
commit 4564170c61
2 changed files with 4 additions and 3 deletions

View 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();

View 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;
}
}