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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
5fbbc83b
Commit
5fbbc83b
authored
Jan 27, 2004
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Freplace_match): Handle nonexistent back-references properly.
parent
bdb6a227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/search.c
src/search.c
+10
-2
No files found.
src/search.c
View file @
5fbbc83b
...
@@ -2366,13 +2366,21 @@ since only regular expressions have distinguished subexpressions. */)
...
@@ -2366,13 +2366,21 @@ since only regular expressions have distinguished subexpressions. */)
substart
=
search_regs
.
start
[
sub
];
substart
=
search_regs
.
start
[
sub
];
subend
=
search_regs
.
end
[
sub
];
subend
=
search_regs
.
end
[
sub
];
}
}
else
if
(
c
>=
'1'
&&
c
<=
'9'
&&
c
<=
search_regs
.
num_regs
+
'0'
)
else
if
(
c
>=
'1'
&&
c
<=
'9'
)
{
{
if
(
search_regs
.
start
[
c
-
'0'
]
>=
0
)
if
(
search_regs
.
start
[
c
-
'0'
]
>=
0
&&
c
<=
search_regs
.
num_regs
+
'0'
)
{
{
substart
=
search_regs
.
start
[
c
-
'0'
];
substart
=
search_regs
.
start
[
c
-
'0'
];
subend
=
search_regs
.
end
[
c
-
'0'
];
subend
=
search_regs
.
end
[
c
-
'0'
];
}
}
else
{
/* If that subexp did not match,
replace \\N with nothing. */
substart
=
0
;
subend
=
0
;
}
}
}
else
if
(
c
==
'\\'
)
else
if
(
c
==
'\\'
)
delbackslash
=
1
;
delbackslash
=
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