tweaks: normalize indentation and whitespace after previous changes
parent
858663444e
commit
95002da66c
14
src/move.c
14
src/move.c
|
@ -316,7 +316,7 @@ void do_prev_word(bool allow_punct, bool update_screen)
|
||||||
|
|
||||||
/* Move to the next word. If after_ends is TRUE, stop at the ends of words
|
/* Move to the next word. If after_ends is TRUE, stop at the ends of words
|
||||||
* instead of their beginnings. If allow_punct is TRUE, treat punctuation
|
* instead of their beginnings. If allow_punct is TRUE, treat punctuation
|
||||||
* as part of a word. When requested, update the screen afterwards.
|
* as part of a word. When requested, update the screen afterwards.
|
||||||
* Return TRUE if we started on a word, and FALSE otherwise. */
|
* Return TRUE if we started on a word, and FALSE otherwise. */
|
||||||
bool do_next_word(bool after_ends, bool allow_punct, bool update_screen)
|
bool do_next_word(bool after_ends, bool allow_punct, bool update_screen)
|
||||||
{
|
{
|
||||||
|
@ -354,13 +354,13 @@ bool do_next_word(bool after_ends, bool allow_punct, bool update_screen)
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* If this is not a word character, then it's a separator; else
|
/* If this is not a word character, then it's a separator; else
|
||||||
* if we've already seen a separator, then it's a word start. */
|
* if we've already seen a separator, then it's a word start. */
|
||||||
if (!is_word_mbchar(openfile->current->data + openfile->current_x,
|
if (!is_word_mbchar(openfile->current->data + openfile->current_x,
|
||||||
allow_punct))
|
allow_punct))
|
||||||
seen_space = TRUE;
|
seen_space = TRUE;
|
||||||
else if (seen_space)
|
else if (seen_space)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
14
src/nano.c
14
src/nano.c
|
@ -1217,13 +1217,13 @@ void signal_init(void)
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
if (getenv("NANO_NOCATCH") == NULL) {
|
if (getenv("NANO_NOCATCH") == NULL) {
|
||||||
/* Trap SIGSEGV and SIGABRT to save any changed buffers and reset
|
/* Trap SIGSEGV and SIGABRT to save any changed buffers and reset
|
||||||
* the terminal to a usable state. Reset these handlers to their
|
* the terminal to a usable state. Reset these handlers to their
|
||||||
* defaults as soon as their signal fires. */
|
* defaults as soon as their signal fires. */
|
||||||
act.sa_handler = handle_crash;
|
act.sa_handler = handle_crash;
|
||||||
act.sa_flags |= SA_RESETHAND;
|
act.sa_flags |= SA_RESETHAND;
|
||||||
sigaction(SIGSEGV, &act, NULL);
|
sigaction(SIGSEGV, &act, NULL);
|
||||||
sigaction(SIGABRT, &act, NULL);
|
sigaction(SIGABRT, &act, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
12
src/prompt.c
12
src/prompt.c
|
@ -307,12 +307,12 @@ void do_statusbar_next_word(void)
|
||||||
else if (seen_word)
|
else if (seen_word)
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
/* If this is not a word character, then it's a separator; else
|
/* If this is not a word character, then it's a separator; else
|
||||||
* if we've already seen a separator, then it's a word start. */
|
* if we've already seen a separator, then it's a word start. */
|
||||||
if (!is_word_mbchar(answer + statusbar_x, FALSE))
|
if (!is_word_mbchar(answer + statusbar_x, FALSE))
|
||||||
seen_space = TRUE;
|
seen_space = TRUE;
|
||||||
else if (seen_space)
|
else if (seen_space)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue