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
9b1beea7
Commit
9b1beea7
authored
Feb 05, 2006
by
Phil Krylov
Committed by
Alexandre Julliard
Feb 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Empty undo stack after EM_STREAMIN without SFF_SELECTION flag.
parent
305ec4d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
editor.c
dlls/riched20/editor.c
+14
-6
No files found.
dlls/riched20/editor.c
View file @
9b1beea7
...
...
@@ -664,14 +664,22 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
}
editor
->
nUndoMode
=
nUndoMode
;
pUI
=
ME_AddUndoItem
(
editor
,
diUndoDeleteRun
,
NULL
);
TRACE
(
"from %d to %d
\n
"
,
from
,
to
);
if
(
pUI
&&
from
<
to
)
if
(
format
&
SFF_SELECTION
)
{
pUI
->
nStart
=
from
;
pUI
->
nLen
=
to
-
from
;
pUI
=
ME_AddUndoItem
(
editor
,
diUndoDeleteRun
,
NULL
);
TRACE
(
"from %d to %d
\n
"
,
from
,
to
);
if
(
pUI
&&
from
<
to
)
{
pUI
->
nStart
=
from
;
pUI
->
nLen
=
to
-
from
;
}
ME_CommitUndo
(
editor
);
}
ME_CommitUndo
(
editor
);
else
{
ME_EmptyUndoStack
(
editor
);
}
ME_ReleaseStyle
(
style
);
editor
->
nEventMask
=
nEventMask
;
if
(
editor
->
bRedraw
)
...
...
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