mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-18 15:30:27 +03:00
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6eea1473b4
commit
4564170c61
@ -56,13 +56,14 @@ void do_home(void)
|
|||||||
size_t pww_save = placewewant;
|
size_t pww_save = placewewant;
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
if (ISSET(SMART_HOME)) {
|
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]) &&
|
for (current_x = 0; isblank(current->data[current_x]) &&
|
||||||
current->data[current_x] != '\0'; 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;
|
current_x = 0;
|
||||||
|
|
||||||
placewewant = xplustabs();
|
placewewant = xplustabs();
|
||||||
|
@ -1492,7 +1492,7 @@ bool do_wrap(filestruct *inptr)
|
|||||||
/* +1 for the space between after_break and wrap_line. */
|
/* +1 for the space between after_break and wrap_line. */
|
||||||
if ((new_line_len + 1 + wrap_line_len) <= fill) {
|
if ((new_line_len + 1 + wrap_line_len) <= fill) {
|
||||||
wrapping = TRUE;
|
wrapping = TRUE;
|
||||||
new_line_len += (1 + wrap_line_len);
|
new_line_len += 1 + wrap_line_len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user