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
7a09b655
Commit
7a09b655
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable, for clarity
parent
c8b26bae
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/search.c
+5
-5
src/search.c
with
5 additions
and
5 deletions
+5
-5
src/search.c
View file @
7a09b655
...
...
@@ -28,8 +28,8 @@
static
bool
came_full_circle
=
FALSE
;
/* Have we reached the starting line again while searching? */
static
bool
regexp
_compiled
=
FALSE
;
/*
Have w
e compiled a
ny
regular expression
s?
*/
static
bool
have
_compiled
_regexp
=
FALSE
;
/*
Whether we hav
e compiled a regular expression
for the search.
*/
/* Compile the given regular expression and store it in search_regexp.
* Return TRUE if the expression is valid, and FALSE otherwise. */
...
...
@@ -50,7 +50,7 @@ bool regexp_init(const char *regexp)
return
FALSE
;
}
regexp
_compiled
=
TRUE
;
have
_compiled
_regexp
=
TRUE
;
return
TRUE
;
}
...
...
@@ -70,9 +70,9 @@ void not_found_msg(const char *str)
* full screen refresh when the mark is on, in case the cursor has moved. */
void
search_replace_abort
(
void
)
{
if
(
regexp_compiled
)
{
regexp_compiled
=
FALSE
;
if
(
have_compiled_regexp
)
{
regfree
(
&
search_regexp
);
have_compiled_regexp
=
FALSE
;
}
#ifndef NANO_TINY
if
(
openfile
->
mark
)
...
...
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