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
4edc83c3
Commit
4edc83c3
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: move a setting to a better place -- it needs setting just once
parent
e6350aab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/search.c
+3
-4
src/search.c
with
3 additions
and
4 deletions
+3
-4
src/search.c
View file @
4edc83c3
...
...
@@ -664,18 +664,17 @@ ssize_t do_replace_loop(const char *needle, bool whole_word_only,
if
(
i
==
-
1
)
/* The replacing was cancelled. */
break
;
else
if
(
i
==
2
)
replaceall
=
TRUE
;
}
if
(
i
>
0
||
replaceall
)
{
/* Yes, replace it
!!!!
*/
if
(
i
==
1
||
replaceall
)
{
/* Yes, replace it
.
*/
char
*
copy
;
size_t
length_change
;
#ifndef NANO_TINY
add_undo
(
REPLACE
);
#endif
if
(
i
==
2
)
replaceall
=
TRUE
;
copy
=
replace_line
(
needle
);
length_change
=
strlen
(
copy
)
-
strlen
(
openfile
->
current
->
data
);
...
...
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