Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2d4a771a
Commit
2d4a771a
authored
Dec 25, 1994
by
Richard M. Stallman
Browse files
(set_search_regs): Really set search_regs.start and .end.
(save_search_regs): Set them to 0 here.
parent
00a34088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/search.c
src/search.c
+4
-4
No files found.
src/search.c
View file @
2d4a771a
...
...
@@ -1309,10 +1309,8 @@ set_search_regs (beg, len)
the match position. */
if
(
search_regs
.
num_regs
==
0
)
{
regoff_t
*
starts
,
*
ends
;
starts
=
(
regoff_t
*
)
xmalloc
(
2
*
sizeof
(
regoff_t
));
ends
=
(
regoff_t
*
)
xmalloc
(
2
*
sizeof
(
regoff_t
));
search_regs
.
start
=
(
regoff_t
*
)
xmalloc
(
2
*
sizeof
(
regoff_t
));
search_regs
.
end
=
(
regoff_t
*
)
xmalloc
(
2
*
sizeof
(
regoff_t
));
search_regs
.
num_regs
=
2
;
}
...
...
@@ -1941,6 +1939,8 @@ save_search_regs ()
saved_search_regs
.
start
=
search_regs
.
start
;
saved_search_regs
.
end
=
search_regs
.
end
;
search_regs
.
num_regs
=
0
;
search_regs
.
start
=
0
;
search_regs
.
end
=
0
;
search_regs_saved
=
1
;
}
...
...
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