Commit 588daf94 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: condense the setting of three flags

parent d21a9c8f
Showing with 2 additions and 8 deletions
+2 -8
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment