Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b7a918b
Commit
1b7a918b
authored
Feb 13, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Support SFF_SELECTION when streaming in plain text.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
82fa1048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
editor.c
dlls/riched20/editor.c
+11
-3
editor.c
dlls/riched20/tests/editor.c
+0
-1
No files found.
dlls/riched20/editor.c
View file @
1b7a918b
...
...
@@ -1609,9 +1609,17 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
{
style
=
editor
->
pBuffer
->
pDefaultStyle
;
ME_AddRefStyle
(
style
);
set_selection_cursors
(
editor
,
0
,
0
);
ME_InternalDeleteText
(
editor
,
&
editor
->
pCursors
[
1
],
ME_GetTextLength
(
editor
),
FALSE
);
if
(
format
&
SFF_SELECTION
)
{
ME_GetSelection
(
editor
,
&
selStart
,
&
selEnd
);
ME_InternalDeleteText
(
editor
,
selStart
,
to
-
from
,
FALSE
);
}
else
{
set_selection_cursors
(
editor
,
0
,
0
);
ME_InternalDeleteText
(
editor
,
&
editor
->
pCursors
[
1
],
ME_GetTextLength
(
editor
),
FALSE
);
}
from
=
to
=
0
;
ME_ClearTempStyle
(
editor
);
editor_set_default_para_fmt
(
editor
,
&
editor
->
pCursors
[
0
].
para
->
fmt
);
...
...
dlls/riched20/tests/editor.c
View file @
1b7a918b
...
...
@@ -1482,7 +1482,6 @@ static void test_EM_SETTEXTMODE(void)
SendMessageA
(
hwndRichEdit
,
WM_PASTE
,
0
,
0
);
len
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
todo_wine
ok
(
len
==
8
/*winewine*/
,
"Unexpected text length %u
\n
"
,
len
);
/*Select a character from the first "wine" string*/
...
...
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