shortcut_init()
- Only allow verbatim input when we're not in view mode. (DLR)
- nano.c:
+ usage()
+ - Clarify the description for -T/--tabsize a bit. (DLR)
do_verbatim_input()
- Remove the now-unneeded code to disable XON, XOFF, and
suspend, since we now go into raw mode in
#ifndef NANO_SMALL
print1opt("-S", "--smooth", _("Smooth scrolling"));
#endif
- print1opt(_("-T [num]"), _("--tabsize=[num]"), _("Set width of a tab to num"));
+ print1opt(_("-T [#cols]"), _("--tabsize=[#cols]"), _("Set width of a tab in cols to #cols"));
print1opt("-V", "--version", _("Print version information and exit"));
#ifdef ENABLE_COLOR
print1opt(_("-Y [str]"), _("--syntax [str]"), _("Syntax definition to use"));
void unsunder(char *str, size_t true_len)
{
assert(str != NULL);
- for (; true_len > 0; true_len--, str++)
+ for (; true_len > 0; true_len--, str++) {
if (*str == '\0')
*str = '\n';
+ }
}
/* For non-null-terminated lines. A line, by definition, shouldn't
void sunder(char *str)
{
assert(str != NULL);
- for (; *str != '\0'; str++)
+ for (; *str != '\0'; str++) {
if (*str == '\n')
*str = '\0';
+ }
}
#ifndef HAVE_STRCASECMP