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
ca2b70b2
Commit
ca2b70b2
authored
Mar 29, 2015
by
Christoph von Wittich
Committed by
Alexandre Julliard
Apr 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Handle SCF_WORD.
parent
2afbf9db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
caret.c
dlls/riched20/caret.c
+1
-1
editor.c
dlls/riched20/editor.c
+6
-2
editor.h
dlls/riched20/editor.h
+1
-0
No files found.
dlls/riched20/caret.c
View file @
ca2b70b2
...
@@ -710,7 +710,7 @@ int ME_MoveCursorChars(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs)
...
@@ -710,7 +710,7 @@ int ME_MoveCursorChars(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs)
}
}
static
BOOL
BOOL
ME_MoveCursorWords
(
ME_TextEditor
*
editor
,
ME_Cursor
*
cursor
,
int
nRelOfs
)
ME_MoveCursorWords
(
ME_TextEditor
*
editor
,
ME_Cursor
*
cursor
,
int
nRelOfs
)
{
{
ME_DisplayItem
*
pRun
=
cursor
->
pRun
,
*
pOtherRun
;
ME_DisplayItem
*
pRun
=
cursor
->
pRun
,
*
pOtherRun
;
...
...
dlls/riched20/editor.c
View file @
ca2b70b2
...
@@ -3510,8 +3510,12 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
...
@@ -3510,8 +3510,12 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
if
(
editor
->
mode
&
TM_PLAINTEXT
)
if
(
editor
->
mode
&
TM_PLAINTEXT
)
return
0
;
return
0
;
if
(
wParam
&
SCF_WORD
)
{
if
(
wParam
&
SCF_WORD
)
{
FIXME
(
"EM_SETCHARFORMAT: word selection not supported
\n
"
);
ME_Cursor
start
;
return
0
;
ME_Cursor
end
=
editor
->
pCursors
[
0
];
ME_MoveCursorWords
(
editor
,
&
end
,
+
1
);
start
=
end
;
ME_MoveCursorWords
(
editor
,
&
start
,
-
1
);
ME_SetCharFormat
(
editor
,
&
start
,
&
end
,
p
);
}
}
bRepaint
=
ME_IsSelection
(
editor
);
bRepaint
=
ME_IsSelection
(
editor
);
ME_SetSelectionCharFormat
(
editor
,
p
);
ME_SetSelectionCharFormat
(
editor
,
p
);
...
...
dlls/riched20/editor.h
View file @
ca2b70b2
...
@@ -166,6 +166,7 @@ void ME_SetDefaultCharFormat(ME_TextEditor *editor, CHARFORMAT2W *mod) DECLSPEC_
...
@@ -166,6 +166,7 @@ void ME_SetDefaultCharFormat(ME_TextEditor *editor, CHARFORMAT2W *mod) DECLSPEC_
/* caret.c */
/* caret.c */
void
ME_SetCursorToStart
(
ME_TextEditor
*
editor
,
ME_Cursor
*
cursor
)
DECLSPEC_HIDDEN
;
void
ME_SetCursorToStart
(
ME_TextEditor
*
editor
,
ME_Cursor
*
cursor
)
DECLSPEC_HIDDEN
;
int
ME_SetSelection
(
ME_TextEditor
*
editor
,
int
from
,
int
to
)
DECLSPEC_HIDDEN
;
int
ME_SetSelection
(
ME_TextEditor
*
editor
,
int
from
,
int
to
)
DECLSPEC_HIDDEN
;
BOOL
ME_MoveCursorWords
(
ME_TextEditor
*
editor
,
ME_Cursor
*
cursor
,
int
nRelOfs
)
DECLSPEC_HIDDEN
;
void
ME_HideCaret
(
ME_TextEditor
*
ed
)
DECLSPEC_HIDDEN
;
void
ME_HideCaret
(
ME_TextEditor
*
ed
)
DECLSPEC_HIDDEN
;
void
ME_ShowCaret
(
ME_TextEditor
*
ed
)
DECLSPEC_HIDDEN
;
void
ME_ShowCaret
(
ME_TextEditor
*
ed
)
DECLSPEC_HIDDEN
;
void
ME_MoveCaret
(
ME_TextEditor
*
ed
)
DECLSPEC_HIDDEN
;
void
ME_MoveCaret
(
ME_TextEditor
*
ed
)
DECLSPEC_HIDDEN
;
...
...
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