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
4989c858
Commit
4989c858
authored
Oct 05, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Oct 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use the provided style for the end-of-paragraph run.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8581ae8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
caret.c
dlls/riched20/caret.c
+1
-6
No files found.
dlls/riched20/caret.c
View file @
4989c858
...
...
@@ -549,7 +549,6 @@ void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor,
pos
++
;
}
else
{
/* handle EOLs */
ME_DisplayItem
*
tp
,
*
end_run
,
*
run
,
*
prev
;
ME_Style
*
tmp_style
;
int
eol_len
=
0
;
/* Find number of CR and LF in end of paragraph run */
...
...
@@ -594,13 +593,9 @@ void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor,
run
=
p
->
pRun
;
}
tmp_style
=
ME_GetInsertStyle
(
editor
,
nCursor
);
/* ME_SplitParagraph increases style refcount */
tp
=
ME_SplitParagraph
(
editor
,
run
,
run
->
member
.
run
.
style
,
eol_str
,
eol_len
,
0
);
tp
=
ME_SplitParagraph
(
editor
,
run
,
style
,
eol_str
,
eol_len
,
0
);
end_run
=
ME_FindItemBack
(
tp
,
diRun
);
ME_ReleaseStyle
(
end_run
->
member
.
run
.
style
);
end_run
->
member
.
run
.
style
=
tmp_style
;
/* Move any cursors that were at the end of the previous run to the beginning of the new para */
prev
=
ME_FindItemBack
(
end_run
,
diRun
);
...
...
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