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
552bc81f
Commit
552bc81f
authored
Apr 25, 2007
by
Clinton Stimpson
Committed by
Alexandre Julliard
Apr 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Set modify state when removing text.
parent
2d9685db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
caret.c
dlls/riched20/caret.c
+2
-0
editor.c
dlls/riched20/tests/editor.c
+8
-0
No files found.
dlls/riched20/caret.c
View file @
552bc81f
...
...
@@ -366,6 +366,8 @@ void ME_DeleteTextAtCursor(ME_TextEditor *editor, int nCursor,
int
nChars
)
{
assert
(
nCursor
>=
0
&&
nCursor
<
editor
->
nCursors
);
/* text operations set modified state */
editor
->
nModifyStep
=
1
;
ME_InternalDeleteText
(
editor
,
ME_GetCursorOfs
(
editor
,
nCursor
),
nChars
);
}
...
...
dlls/riched20/tests/editor.c
View file @
552bc81f
...
...
@@ -1322,6 +1322,14 @@ static void test_EM_GETMODIFY(void)
result
=
SendMessage
(
hwndRichEdit
,
EM_GETMODIFY
,
0
,
0
);
ok
(
result
!=
0
,
"EM_GETMODIFY returned zero, instead of non-zero for WM_CHAR
\n
"
);
/* press del */
SendMessage
(
hwndRichEdit
,
WM_CHAR
,
'A'
,
0
);
SendMessage
(
hwndRichEdit
,
EM_SETMODIFY
,
FALSE
,
0
);
SendMessage
(
hwndRichEdit
,
WM_KEYDOWN
,
VK_BACK
,
0
);
result
=
SendMessage
(
hwndRichEdit
,
EM_GETMODIFY
,
0
,
0
);
ok
(
result
!=
0
,
"EM_GETMODIFY returned zero, instead of non-zero for backspace
\n
"
);
/* set char format */
SendMessage
(
hwndRichEdit
,
EM_SETMODIFY
,
FALSE
,
0
);
...
...
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