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
887d7e68
Commit
887d7e68
authored
Oct 21, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use the paragraph and run helpers in the delete text function.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
35f5e651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
caret.c
dlls/riched20/caret.c
+6
-6
No files found.
dlls/riched20/caret.c
View file @
887d7e68
...
@@ -333,18 +333,18 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start,
...
@@ -333,18 +333,18 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start,
{
{
/* We aren't deleting anything in this run, so we will go back to the
/* We aren't deleting anything in this run, so we will go back to the
* last run we are deleting text in. */
* last run we are deleting text in. */
ME_PrevRun
(
&
c
.
pPara
,
&
c
.
pRun
,
TRUE
);
c
.
pRun
=
run_get_di
(
run_prev_all_paras
(
&
c
.
pRun
->
member
.
run
)
);
c
.
pPara
=
para_get_di
(
c
.
pRun
->
member
.
run
.
para
);
c
.
nOffset
=
c
.
pRun
->
member
.
run
.
len
;
c
.
nOffset
=
c
.
pRun
->
member
.
run
.
len
;
}
}
run
=
&
c
.
pRun
->
member
.
run
;
run
=
&
c
.
pRun
->
member
.
run
;
if
(
run
->
nFlags
&
MERF_ENDPARA
)
{
if
(
run
->
nFlags
&
MERF_ENDPARA
)
{
int
eollen
=
c
.
pRun
->
member
.
run
.
len
;
int
eollen
=
c
.
pRun
->
member
.
run
.
len
;
BOOL
keepFirstParaFormat
;
BOOL
keepFirstParaFormat
;
if
(
!
ME_FindItemFwd
(
c
.
pRun
,
diParagraph
))
if
(
!
para_next
(
para_next
(
&
c
.
pPara
->
member
.
para
)
))
return
TRUE
;
{
return
TRUE
;
}
keepFirstParaFormat
=
(
totalChars
==
nChars
&&
nChars
<=
eollen
&&
keepFirstParaFormat
=
(
totalChars
==
nChars
&&
nChars
<=
eollen
&&
run
->
nCharOfs
);
run
->
nCharOfs
);
if
(
!
editor
->
bEmulateVersion10
)
/* v4.1 */
if
(
!
editor
->
bEmulateVersion10
)
/* v4.1 */
...
...
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