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
bfac4379
Commit
bfac4379
authored
Oct 14, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't return the diTextStart paragraph from para_prev().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
02f4a178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
caret.c
dlls/riched20/caret.c
+2
-4
para.c
dlls/riched20/para.c
+1
-1
No files found.
dlls/riched20/caret.c
View file @
bfac4379
...
...
@@ -774,12 +774,10 @@ ME_MoveCursorWords(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs)
{
para
=
run
->
para
;
/* Skip empty start of table row paragraph */
if
(
para_prev
(
para
)
->
nFlags
&
MEPF_ROWSTART
)
if
(
para_prev
(
para
)
&&
para_prev
(
para
)
->
nFlags
&
MEPF_ROWSTART
)
para
=
para_prev
(
para
);
/* Paragraph breaks are treated as separate words */
if
(
para_get_di
(
para_prev
(
para
)
)
->
type
==
diTextStart
)
return
FALSE
;
if
(
!
para_prev
(
para
))
return
FALSE
;
para
=
para_prev
(
para
);
run
=
para_end_run
(
para
);
}
...
...
dlls/riched20/para.c
View file @
bfac4379
...
...
@@ -64,7 +64,7 @@ ME_Paragraph *para_next( ME_Paragraph *para )
ME_Paragraph
*
para_prev
(
ME_Paragraph
*
para
)
{
if
(
para
->
prev_para
)
return
&
para
->
prev_para
->
member
.
para
;
if
(
para
->
prev_para
&&
para
->
prev_para
->
type
==
diParagraph
)
return
&
para
->
prev_para
->
member
.
para
;
return
NULL
;
}
...
...
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