Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
03fa4cfa
Commit
03fa4cfa
authored
Jun 01, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Jun 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Add support for quoting urls with spaces within '<' '>'.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ea1e44e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
editor.c
dlls/riched20/editor.c
+27
-4
No files found.
dlls/riched20/editor.c
View file @
03fa4cfa
...
...
@@ -5038,8 +5038,8 @@ static BOOL ME_FindNextURLCandidate(ME_TextEditor *editor,
ME_Cursor
*
candidate_min
,
ME_Cursor
*
candidate_max
)
{
ME_Cursor
cursor
=
*
start
,
neutral_end
;
BOOL
candidateStarted
=
FALSE
;
ME_Cursor
cursor
=
*
start
,
neutral_end
,
space_end
;
BOOL
candidateStarted
=
FALSE
,
quoted
=
FALSE
;
WCHAR
c
;
while
(
nChars
>
0
)
...
...
@@ -5060,9 +5060,11 @@ static BOOL ME_FindNextURLCandidate(ME_TextEditor *editor,
*
candidate_min
=
cursor
;
candidateStarted
=
TRUE
;
neutral_end
.
pPara
=
NULL
;
space_end
.
pPara
=
NULL
;
cursor
.
nOffset
++
;
break
;
}
quoted
=
(
c
==
'<'
);
cursor
.
nOffset
++
;
}
}
...
...
@@ -5074,9 +5076,28 @@ static BOOL ME_FindNextURLCandidate(ME_TextEditor *editor,
{
c
=
str
[
cursor
.
nOffset
];
if
(
isspaceW
(
c
))
goto
done
;
{
if
(
quoted
&&
c
!=
'\r'
)
{
if
(
!
space_end
.
pPara
)
{
if
(
neutral_end
.
pPara
)
space_end
=
neutral_end
;
else
space_end
=
cursor
;
}
}
else
goto
done
;
}
else
if
(
isurlneutral
(
c
))
{
if
(
quoted
&&
c
==
'>'
)
{
neutral_end
.
pPara
=
NULL
;
space_end
.
pPara
=
NULL
;
goto
done
;
}
if
(
!
neutral_end
.
pPara
)
neutral_end
=
cursor
;
}
...
...
@@ -5095,7 +5116,9 @@ static BOOL ME_FindNextURLCandidate(ME_TextEditor *editor,
done:
if
(
candidateStarted
)
{
if
(
neutral_end
.
pPara
)
if
(
space_end
.
pPara
)
*
candidate_max
=
space_end
;
else
if
(
neutral_end
.
pPara
)
*
candidate_max
=
neutral_end
;
else
*
candidate_max
=
cursor
;
...
...
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