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
4872f42c
Commit
4872f42c
authored
6 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a function, to be more distinct from its caller
parent
62007c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+4
-5
src/text.c
with
4 additions
and
5 deletions
+4
-5
src/text.c
View file @
4872f42c
...
...
@@ -2523,9 +2523,8 @@ void construct_argument_list(char ***arguments, char *command, char *filename)
#endif
#ifdef ENABLE_SPELLER
/* A word is misspelled in the file. Let the user replace it. We
* return FALSE if the user cancels. */
bool
do_int_spell_fix
(
const
char
*
word
)
/* Let the user edit the misspelled word. Return FALSE if the user cancels. */
bool
fix_spello
(
const
char
*
word
)
{
char
*
save_search
;
size_t
firstcolumn_save
=
openfile
->
firstcolumn
;
...
...
@@ -2783,7 +2782,7 @@ const char *do_int_speller(const char *tempfile_name)
if
((
*
read_buff_ptr
==
'\r'
)
||
(
*
read_buff_ptr
==
'\n'
))
{
*
read_buff_ptr
=
'\0'
;
if
(
read_buff_word
!=
read_buff_ptr
)
{
if
(
!
do_int
_spell
_fix
(
read_buff_word
))
{
if
(
!
fix
_spell
o
(
read_buff_word
))
{
read_buff_word
=
read_buff_ptr
;
break
;
}
...
...
@@ -2795,7 +2794,7 @@ const char *do_int_speller(const char *tempfile_name)
/* Special case: the last word doesn't end with '\r' or '\n'. */
if
(
read_buff_word
!=
read_buff_ptr
)
do_int
_spell
_fix
(
read_buff_word
);
fix
_spell
o
(
read_buff_word
);
free
(
read_buff
);
tidy_up_after_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
Menu
Projects
Groups
Snippets
Help