From fc36ff7275081ef0fb90e3f3b96dd7a4a23ec793 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 14 Oct 2017 20:49:12 +0200 Subject: [PATCH] options: retire 'set backwards' -- it's still recognized but a no-op --- doc/nano.texi | 3 ++- doc/nanorc.5 | 3 ++- doc/sample.nanorc.in | 3 --- src/nano.c | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/nano.texi b/doc/nano.texi index 462d3a36..3099ca31 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -703,7 +703,8 @@ with @code{set backup} or @option{--backup} or @option{-B}. The uniquely numbered files are stored in the specified directory. @item set backwards -Do backwards searches by default. +Obsolete option. Recognized but ignored. @code{^Q} is available to +start a backward search. @item set boldtext Use bold instead of reverse video for the title bar, status bar, key combos, diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 2e6c3a75..30731cb4 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -74,7 +74,8 @@ with \fBset backup\fR or \fB\-\-backup\fR or \fB\-B\fR. The uniquely numbered files are stored in the specified \fIdirectory\fR. .TP .B set backwards -Do backwards searches by default. +Obsolete option. Recognized but ignored. \fB^Q\fR is available to +start a backward search. .TP .B set boldtext Use bold instead of reverse video for the title bar, status bar, key combos, diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in index 9b3355a8..58017593 100644 --- a/doc/sample.nanorc.in +++ b/doc/sample.nanorc.in @@ -33,9 +33,6 @@ ## The directory to put unique backup files in. # set backupdir "" -## Do backwards searches by default. -# set backwards - ## Use bold text instead of reverse video text. # set boldtext diff --git a/src/nano.c b/src/nano.c index 86ce037c..b3888d9d 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2455,6 +2455,7 @@ int main(int argc, char **argv) /* Initialize the search string. */ last_search = mallocstrcpy(NULL, ""); + UNSET(BACKWARDS_SEARCH); /* If tabsize wasn't specified, set its default value. */ if (tabsize == -1)