Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
588daf94
Commit
588daf94
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: condense the setting of three flags
parent
d21a9c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/browser.c
+1
-1
src/browser.c
src/text.c
+1
-7
src/text.c
with
2 additions
and
8 deletions
+2
-8
src/browser.c
View file @
588daf94
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/text.c
View file @
588daf94
...
...
@@ -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 sur
e spell
-
check
is
case sensitive. */
/*
Do th
e spell
check
ing
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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment