2014-04-05 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (version): Print the correct configuration options.
+ * src/{chars.c,nano.c,text.c}: Cosmetic tweaks.
2014-04-05 Mike Frysinger <vapier@gentoo.org>
* src/nano.c (do_input): Reload possibly freed function pointer.
enabled = !enabled;
desc = (char *) _(flagtostr(flag));
- statusbar("%s %s", desc, enabled ? _("enabled") :
- _("disabled"));
+ statusbar("%s %s", desc, enabled ? _("enabled") : _("disabled"));
}
/* Bleh */
#ifndef NANO_TINY
if (s->scfunc == do_toggle_void)
do_toggle(s->toggle);
- else {
-#else
- {
+ else
#endif
+ {
s->scfunc();
#ifndef DISABLE_COLOR
/* The command might have re-initialized shortcuts,
edit_refresh();
edit_refresh_needed = FALSE;
}
-
}
}
}
load_poshistory();
}
#endif /* ENABLE_NANORC */
-#endif /* !NANO_TINY */
-#ifndef NANO_TINY
/* Set up the backup directory (unless we're using restricted mode,
* in which case backups are disabled, since they would allow
* reading from or writing to files not specified on the command
* that backup files will be saved there. */
if (!ISSET(RESTRICTED))
init_backup_dir();
-#endif
+#endif /* !NANO_TINY */
#ifndef DISABLE_OPERATINGDIR
/* Set up the operating directory. This entails chdir()ing there,
/* If matchbrackets wasn't specified, set its default value. */
if (matchbrackets == NULL)
matchbrackets = mallocstrcpy(NULL, "(<[{)>]}");
-#endif
-#if !defined(NANO_TINY) && defined(ENABLE_NANORC)
+#ifdef ENABLE_NANORC
/* If whitespace wasn't specified, set its default value. */
if (whitespace == NULL) {
#ifdef ENABLE_UTF8
whitespace_len[1] = 1;
}
}
-#endif
+#endif /* ENABLE_NANORC */
+#endif /* !NANO_TINY */
/* If tabsize wasn't specified, set its default value. */
if (tabsize == -1)
}
}
}
-#endif
+#endif /* !DISABLE_MULTIBUFFER */
/* Read the first file on the command line into either the current
* buffer or a new buffer, depending on whether multibuffer mode is
* and as such we should note that so we can destroy it later. */
u->xflags = UNsplit_madenew;
break;
-#endif /* DISABLE_WRAPPING */
+#endif /* !DISABLE_WRAPPING */
case UNSPLIT:
/* These cases are handled by the earlier check for a new line and action. */
case ENTER: