new functions do_para_operation(), do_para_begin(), and
do_para_end(). Note that the last three functions are
disabled if justification is disabled. (DLR)
+ - Make sure the "historylog" option isn't included at all if
+ NANO_SMALL is defined. (DLR)
- files.c:
do_browser()
- Some of the Pico compatibility options in the file browser
if (homenv != NULL || userage != NULL) {
hist = fopen(nanohist, "r");
- if (!hist) {
+ if (hist == NULL) {
if (errno != ENOENT) {
/* Don't save history when we quit. */
UNSET(HISTORYLOG);
if (homenv != NULL || userage != NULL) {
hist = fopen(nanohist, "wb");
- if (!hist) {
+ if (hist == NULL) {
rcfile_msg(_("Unable to write ~/.nano_history file, %s"), strerror(errno));
} else {
/* set rw only by owner for security ?? */
print1opt("-F", "--multibuffer", _("Enable multiple file buffers"));
#endif
#ifdef ENABLE_NANORC
+#ifndef NANO_SMALL
print1opt("-H", "--historylog", _("Log & read search/replace string history"));
+#endif
print1opt("-I", "--ignorercfiles", _("Don't look at nanorc files"));
#endif
#ifndef NANO_SMALL
{"multibuffer", 0, 0, 'F'},
#endif
#ifdef ENABLE_NANORC
+#ifndef NANO_SMALL
{"historylog", 0, 0, 'H'},
+#endif
{"ignorercfiles", 0, 0, 'I'},
#endif
#ifndef DISABLE_JUSTIFY
break;
#endif
#ifdef ENABLE_NANORC
+#ifndef NANO_SMALL
case 'H':
SET(HISTORYLOG);
break;
+#endif
case 'I':
SET(NO_RCFILE);
break;
#ifndef DISABLE_WRAPJUSTIFY
{"fill", 0},
#endif
+#ifndef NANO_SMALL
+ {"historylog", HISTORYLOG},
+#endif
#if !defined(DISABLE_MOUSE) && defined(NCURSES_MOUSE_VERSION)
{"mouse", USE_MOUSE},
#endif
{"tabsize", 0},
{"tempfile", TEMP_OPT},
{"view", VIEW_MODE},
- {"historylog", HISTORYLOG},
{NULL, 0}
};