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
df1b51df
Commit
df1b51df
authored
Oct 04, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Oct 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Clearing the insert style should not depend on the event mask.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
304c8320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
caret.c
dlls/riched20/caret.c
+10
-8
No files found.
dlls/riched20/caret.c
View file @
df1b51df
...
...
@@ -1515,9 +1515,6 @@ void ME_SendSelChange(ME_TextEditor *editor)
{
SELCHANGE
sc
;
if
(
!
(
editor
->
nEventMask
&
ENM_SELCHANGE
))
return
;
sc
.
nmhdr
.
hwndFrom
=
NULL
;
sc
.
nmhdr
.
idFrom
=
0
;
sc
.
nmhdr
.
code
=
EN_SELCHANGE
;
...
...
@@ -1527,16 +1524,21 @@ void ME_SendSelChange(ME_TextEditor *editor)
sc
.
seltyp
|=
SEL_TEXT
;
if
(
sc
.
chrg
.
cpMin
<
sc
.
chrg
.
cpMax
+
1
)
/* what were RICHEDIT authors thinking ? */
sc
.
seltyp
|=
SEL_MULTICHAR
;
TRACE
(
"cpMin=%d cpMax=%d seltyp=%d (%s %s)
\n
"
,
sc
.
chrg
.
cpMin
,
sc
.
chrg
.
cpMax
,
sc
.
seltyp
,
(
sc
.
seltyp
&
SEL_TEXT
)
?
"SEL_TEXT"
:
""
,
(
sc
.
seltyp
&
SEL_MULTICHAR
)
?
"SEL_MULTICHAR"
:
""
);
if
(
sc
.
chrg
.
cpMin
!=
editor
->
notified_cr
.
cpMin
||
sc
.
chrg
.
cpMax
!=
editor
->
notified_cr
.
cpMax
)
{
ME_ClearTempStyle
(
editor
);
editor
->
notified_cr
=
sc
.
chrg
;
ITextHost_TxNotify
(
editor
->
texthost
,
sc
.
nmhdr
.
code
,
&
sc
);
if
(
editor
->
nEventMask
&
ENM_SELCHANGE
)
{
TRACE
(
"cpMin=%d cpMax=%d seltyp=%d (%s %s)
\n
"
,
sc
.
chrg
.
cpMin
,
sc
.
chrg
.
cpMax
,
sc
.
seltyp
,
(
sc
.
seltyp
&
SEL_TEXT
)
?
"SEL_TEXT"
:
""
,
(
sc
.
seltyp
&
SEL_MULTICHAR
)
?
"SEL_MULTICHAR"
:
""
);
ITextHost_TxNotify
(
editor
->
texthost
,
sc
.
nmhdr
.
code
,
&
sc
);
}
}
}
...
...
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