From 588daf949eca0e0ef7dc5dd6387052ee7f2a09fa Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 25 Dec 2016 13:11:17 +0100 Subject: [PATCH] tweaks: condense the setting of three flags --- src/browser.c | 2 +- src/text.c | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/browser.c b/src/browser.c index d6397554..6b740088 100644 --- a/src/browser.c +++ b/src/browser.c @@ -707,7 +707,7 @@ void findnextfile(const char *needle) /* Save the settings of all flags. */ memcpy(stash, flags, sizeof(flags)); - /* Search forward, case insensitive and without regexes. */ + /* Search forward, case insensitive, and without regexes. */ UNSET(BACKWARDS_SEARCH); UNSET(CASE_SENSITIVE); UNSET(USE_REGEXP); diff --git a/src/text.c b/src/text.c index f5e340c7..bd173768 100644 --- a/src/text.c +++ b/src/text.c @@ -2622,16 +2622,10 @@ bool do_int_spell_fix(const char *word) /* Save the settings of the global flags. */ memcpy(stash, flags, sizeof(flags)); - /* Make sure spell-check is case sensitive. */ + /* Do the spell checking case sensitive, forward, and without regexes. */ SET(CASE_SENSITIVE); - - /* Make sure spell-check goes forward only. */ UNSET(BACKWARDS_SEARCH); - -#ifdef HAVE_REGEX_H - /* Make sure spell-check doesn't use regular expressions. */ UNSET(USE_REGEXP); -#endif /* Save the current search string, then set it to the misspelled word. */ save_search = last_search;