Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
55394076
Commit
55394076
authored
6 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: set the correct flags just once for each spell-fixing session
parent
faa0eb99
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+6
-6
src/text.c
with
6 additions
and
6 deletions
+6
-6
src/text.c
View file @
55394076
...
...
@@ -2544,11 +2544,6 @@ bool fix_spello(const char *word)
size_t
top_x
,
bot_x
;
#endif
/* Do the spell checking case sensitive, forward, and without regexes. */
SET
(
CASE_SENSITIVE
);
UNSET
(
BACKWARDS_SEARCH
);
UNSET
(
USE_REGEXP
);
/* Save the current search string, then set it to the misspelled word. */
save_search
=
last_search
;
last_search
=
mallocstrcpy
(
NULL
,
word
);
...
...
@@ -2767,9 +2762,14 @@ const char *do_int_speller(const char *tempfile_name)
*
read_buff_ptr
=
'\0'
;
close
(
uniq_fd
[
0
]);
/* Process the spelling errors. */
/* Do any replacements case sensitive, forward, and without regexes. */
SET
(
CASE_SENSITIVE
);
UNSET
(
BACKWARDS_SEARCH
);
UNSET
(
USE_REGEXP
);
read_buff_word
=
read_buff_ptr
=
read_buff
;
/* Process each of the misspelled words. */
while
(
*
read_buff_ptr
!=
'\0'
)
{
if
((
*
read_buff_ptr
==
'\r'
)
||
(
*
read_buff_ptr
==
'\n'
))
{
*
read_buff_ptr
=
'\0'
;
...
...
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
Menu
Projects
Groups
Snippets
Help