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
d7ff2437
Commit
d7ff2437
authored
Sep 11, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Enter inserts newline before table at start of document.
parent
08437689
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
editor.c
dlls/riched20/editor.c
+18
-1
No files found.
dlls/riched20/editor.c
View file @
d7ff2437
...
...
@@ -3725,7 +3725,24 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
para
->
member
.
para
.
prev_para
->
member
.
para
.
nFlags
&
MEPF_ROWSTART
&&
!
para
->
member
.
para
.
prev_para
->
member
.
para
.
nCharOfs
)
{
/* FIXME: Insert a newline before the table. */
/* Insert a newline before the table. */
WCHAR
endl
=
'\r'
;
para
=
para
->
member
.
para
.
prev_para
;
para
->
member
.
para
.
nFlags
&=
~
MEPF_ROWSTART
;
editor
->
pCursors
[
0
].
pRun
=
ME_FindItemFwd
(
para
,
diRun
);
editor
->
pCursors
[
1
]
=
editor
->
pCursors
[
0
];
ME_InsertTextFromCursor
(
editor
,
0
,
&
endl
,
1
,
editor
->
pCursors
[
0
].
pRun
->
member
.
run
.
style
);
para
=
editor
->
pBuffer
->
pFirst
->
member
.
para
.
next_para
;
ME_SetDefaultParaFormat
(
para
->
member
.
para
.
pFmt
);
para
->
member
.
para
.
nFlags
=
MEPF_REWRAP
;
editor
->
pCursors
[
0
].
pRun
=
ME_FindItemFwd
(
para
,
diRun
);
editor
->
pCursors
[
1
]
=
editor
->
pCursors
[
0
];
para
->
member
.
para
.
next_para
->
member
.
para
.
nFlags
|=
MEPF_ROWSTART
;
ME_CommitCoalescingUndo
(
editor
);
ME_CheckTablesForCorruption
(
editor
);
ME_UpdateRepaint
(
editor
);
return
0
;
}
}
else
{
/* v1.0 - 3.0 */
ME_DisplayItem
*
para
=
ME_GetParagraph
(
cursor
.
pRun
);
...
...
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