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
ac511013
Commit
ac511013
authored
Jul 01, 2023
by
Jinoh Kang
Committed by
Alexandre Julliard
Jul 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't call ME_UpdateRepaint inside set_selection().
This partially reverts
c5daf6a3
(riched20: Call ME_UpdateRepaint instead of editor_ensure_visible in set_selection.) Fixes:
c5daf6a3
parent
c35926e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
editor.c
dlls/riched20/editor.c
+2
-1
txtsrv.c
dlls/riched20/tests/txtsrv.c
+0
-4
No files found.
dlls/riched20/editor.c
View file @
ac511013
...
...
@@ -2148,9 +2148,10 @@ int set_selection( ME_TextEditor *editor, int to, int from )
if
(
!
editor
->
bHideSelection
)
ME_InvalidateSelection
(
editor
);
end
=
set_selection_cursors
(
editor
,
to
,
from
);
ME_UpdateRepaint
(
editor
,
FALSE
);
editor_ensure_visible
(
editor
,
&
editor
->
pCursors
[
0
]
);
if
(
!
editor
->
bHideSelection
)
ME_InvalidateSelection
(
editor
);
update_caret
(
editor
);
ME_Repaint
(
editor
);
ME_SendSelChange
(
editor
);
return
end
;
...
...
dlls/riched20/tests/txtsrv.c
View file @
ac511013
...
...
@@ -1303,7 +1303,6 @@ static void test_set_selection_message( void )
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
CHECK_CALLED
(
ITextHostImpl_TxViewChange
);
todo_wine
ok
(
en_change_sent
==
0
,
"got %d
\n
"
,
en_change_sent
);
todo_wine
ok
(
en_selchange_sent
==
0
,
"got %d
\n
"
,
en_selchange_sent
);
...
...
@@ -1322,7 +1321,6 @@ static void test_set_selection_message( void )
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
CHECK_CALLED
(
ITextHostImpl_TxViewChange
);
todo_wine
ok
(
en_change_sent
==
0
,
"got %d
\n
"
,
en_change_sent
);
ok
(
en_selchange_sent
==
0
,
"got %d
\n
"
,
en_selchange_sent
);
...
...
@@ -1353,7 +1351,6 @@ static void test_set_selection_message( void )
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
CHECK_CALLED
(
ITextHostImpl_TxViewChange
);
todo_wine
ok
(
en_change_sent
==
0
,
"got %d
\n
"
,
en_change_sent
);
ok
(
en_selchange_sent
==
1
,
"got %d
\n
"
,
en_selchange_sent
);
...
...
@@ -1371,7 +1368,6 @@ static void test_set_selection_message( void )
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
CHECK_CALLED
(
ITextHostImpl_TxViewChange
);
todo_wine
ok
(
en_change_sent
==
0
,
"got %d
\n
"
,
en_change_sent
);
ok
(
en_selchange_sent
==
0
,
"got %d
\n
"
,
en_selchange_sent
);
...
...
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