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
c3031b9b
Commit
c3031b9b
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle some of the search-and-replace cleanup calls
parent
d2895107
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 @
c3031b9b
...
...
@@ -164,6 +164,7 @@ void search_init(bool replacing, bool keep_the_answer)
else
go_looking
();
search_replace_abort
();
return
;
}
...
...
@@ -402,6 +403,8 @@ void do_research(void)
currmenu
=
MWHEREIS
;
go_looking
();
search_replace_abort
();
}
/* Search for the global string 'last_search'. Inform the user when
...
...
@@ -432,7 +435,6 @@ void go_looking(void)
#endif
edit_redraw
(
was_current
,
CENTERING
);
search_replace_abort
();
}
/* Calculate the size of the replacement text, taking possible
...
...
@@ -726,7 +728,6 @@ void ask_for_replacement(void)
if
(
i
==
-
1
||
i
>
0
)
{
if
(
i
==
-
1
)
statusbar
(
_
(
"Cancelled"
));
search_replace_abort
();
return
;
}
...
...
@@ -748,8 +749,6 @@ void ask_for_replacement(void)
if
(
numreplaced
>=
0
)
statusline
(
HUSH
,
P_
(
"Replaced %zd occurrence"
,
"Replaced %zd occurrences"
,
numreplaced
),
numreplaced
);
search_replace_abort
();
}
/* Go to the specified line and x position. */
...
...
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