Allowing a tiny nano to enable search and position histories.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Benno Schulenberg 2015-06-18 18:51:27 +00:00
parent 3021a04c1c
commit 7c2f53b2a9
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2015-06-17 Benno Schulenberg <bensberg@justemail.net>
* src/rcfile.c: Allow a tiny nano's ~/.nanorc to enable search and
position histories. Also sort the options more strictly.
2015-06-17 Benno Schulenberg <bensberg@justemail.net> 2015-06-17 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_undo, add_undo): When undoing a Backspace at the tail * src/text.c (do_undo, add_undo): When undoing a Backspace at the tail
of the file and nonewlines is not set, then don't add another newline of the file and nonewlines is not set, then don't add another newline

View File

@ -42,16 +42,16 @@ static const rcoption rcopts[] = {
#ifndef DISABLE_WRAPJUSTIFY #ifndef DISABLE_WRAPJUSTIFY
{"fill", 0}, {"fill", 0},
#endif #endif
#ifndef NANO_TINY #ifndef DISABLE_HISTORIES
{"locking", LOCKING}, {"historylog", HISTORYLOG},
#endif #endif
{"morespace", MORE_SPACE},
#ifndef DISABLE_MOUSE #ifndef DISABLE_MOUSE
{"mouse", USE_MOUSE}, {"mouse", USE_MOUSE},
#endif #endif
#ifndef DISABLE_MULTIBUFFER #ifndef DISABLE_MULTIBUFFER
{"multibuffer", MULTIBUFFER}, {"multibuffer", MULTIBUFFER},
#endif #endif
{"morespace", MORE_SPACE},
{"nofollow", NOFOLLOW_SYMLINKS}, {"nofollow", NOFOLLOW_SYMLINKS},
{"nohelp", NO_HELP}, {"nohelp", NO_HELP},
{"nonewlines", NO_NEWLINES}, {"nonewlines", NO_NEWLINES},
@ -60,6 +60,9 @@ static const rcoption rcopts[] = {
#endif #endif
#ifndef DISABLE_OPERATINGDIR #ifndef DISABLE_OPERATINGDIR
{"operatingdir", 0}, {"operatingdir", 0},
#endif
#ifndef DISABLE_HISTORIES
{"poslog", POS_HISTORY},
#endif #endif
{"preserve", PRESERVE}, {"preserve", PRESERVE},
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
@ -79,19 +82,18 @@ static const rcoption rcopts[] = {
{"tempfile", TEMP_FILE}, {"tempfile", TEMP_FILE},
{"view", VIEW_MODE}, {"view", VIEW_MODE},
#ifndef NANO_TINY #ifndef NANO_TINY
{"allow_insecure_backup", INSECURE_BACKUP},
{"autoindent", AUTOINDENT}, {"autoindent", AUTOINDENT},
{"backup", BACKUP_FILE}, {"backup", BACKUP_FILE},
{"allow_insecure_backup", INSECURE_BACKUP},
{"backupdir", 0}, {"backupdir", 0},
{"backwards", BACKWARDS_SEARCH}, {"backwards", BACKWARDS_SEARCH},
{"casesensitive", CASE_SENSITIVE}, {"casesensitive", CASE_SENSITIVE},
{"cut", CUT_TO_END}, {"cut", CUT_TO_END},
{"historylog", HISTORYLOG}, {"locking", LOCKING},
{"matchbrackets", 0}, {"matchbrackets", 0},
{"noconvert", NO_CONVERT}, {"noconvert", NO_CONVERT},
{"poslog", POS_HISTORY},
{"quiet", QUIET},
{"quickblank", QUICK_BLANK}, {"quickblank", QUICK_BLANK},
{"quiet", QUIET},
{"smarthome", SMART_HOME}, {"smarthome", SMART_HOME},
{"smooth", SMOOTH_SCROLL}, {"smooth", SMOOTH_SCROLL},
{"tabstospaces", TABS_TO_SPACES}, {"tabstospaces", TABS_TO_SPACES},