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
adb43b91
Commit
adb43b91
authored
Aug 11, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Update the auto url detection after a StreamIn.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a65c31e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
editor.c
dlls/riched20/editor.c
+7
-1
No files found.
dlls/riched20/editor.c
View file @
adb43b91
...
...
@@ -1559,8 +1559,9 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
if
(
!
invalidRTF
&&
!
inStream
.
editstream
->
dwError
)
{
ME_Cursor
start
;
from
=
ME_GetCursorOfs
(
&
editor
->
pCursors
[
0
]);
if
(
format
&
SF_RTF
)
{
from
=
ME_GetCursorOfs
(
&
editor
->
pCursors
[
0
]);
/* setup the RTF parser */
memset
(
&
parser
,
0
,
sizeof
parser
);
...
...
@@ -1662,12 +1663,17 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
style
=
parser
.
style
;
}
else
if
(
format
&
SF_TEXT
)
{
num_read
=
ME_StreamInText
(
editor
,
format
,
&
inStream
,
style
);
to
=
ME_GetCursorOfs
(
&
editor
->
pCursors
[
0
]);
}
else
ERR
(
"EM_STREAMIN without SF_TEXT or SF_RTF
\n
"
);
/* put the cursor at the top */
if
(
!
(
format
&
SFF_SELECTION
))
ME_SetSelection
(
editor
,
0
,
0
);
ME_CursorFromCharOfs
(
editor
,
from
,
&
start
);
ME_UpdateLinkAttribute
(
editor
,
&
start
,
to
-
from
);
}
/* Restore saved undo mode */
...
...
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