commit a381021ffc3cbfdf7729dbd619d96307d6b2e374
parent 0b0ddb1e5fe5a96f0addfb04dba0568b143c1e5f
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 2 Jan 2017 20:33:56 +0100
tweaks: when allow_tabs is FALSE, allow_files is irrelevant
In that case setting the latter to TRUE is misleading. So don't do that.
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/browser.c b/src/browser.c
@@ -672,7 +672,7 @@ int filesearch_init(void)
/* This is now one simple call. It just does a lot. */
input = do_prompt(FALSE,
#ifndef DISABLE_TABCOMP
- TRUE,
+ FALSE,
#endif
MWHEREISFILE, NULL,
#ifndef DISABLE_HISTORIES
diff --git a/src/search.c b/src/search.c
@@ -149,7 +149,7 @@ int search_init(bool replacing, bool use_answer)
/* This is now one simple call. It just does a lot. */
i = do_prompt(FALSE,
#ifndef DISABLE_TABCOMP
- TRUE,
+ FALSE,
#endif
replacing ? MREPLACE : MWHEREIS, backupstring,
#ifndef DISABLE_HISTORIES
@@ -787,7 +787,7 @@ void do_replace(void)
i = do_prompt(FALSE,
#ifndef DISABLE_TABCOMP
- TRUE,
+ FALSE,
#endif
MREPLACEWITH, NULL,
#ifndef DISABLE_HISTORIES
@@ -856,7 +856,7 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
/* Ask for the line and column. */
int i = do_prompt(FALSE,
#ifndef DISABLE_TABCOMP
- TRUE,
+ FALSE,
#endif
MGOTOLINE, use_answer ? answer : NULL,
#ifndef DISABLE_HISTORIES
diff --git a/src/text.c b/src/text.c
@@ -2666,7 +2666,7 @@ bool do_int_spell_fix(const char *word)
/* Let the user supply a correctly spelled alternative. */
proceed = (do_prompt(FALSE,
#ifndef DISABLE_TABCOMP
- TRUE,
+ FALSE,
#endif
MSPELL, word,
#ifndef DISABLE_HISTORIES