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
40c54854
Commit
40c54854
authored
Jun 28, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Jul 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Add undo control state variable to ME_TextEditor.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
parent
0cd86e01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
editor.c
dlls/riched20/editor.c
+1
-0
editor.h
dlls/riched20/editor.h
+1
-1
editstr.h
dlls/riched20/editstr.h
+7
-0
No files found.
dlls/riched20/editor.c
View file @
40c54854
...
...
@@ -2973,6 +2973,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed
->
nUndoStackSize
=
0
;
ed
->
nUndoLimit
=
STACK_SIZE_DEFAULT
;
ed
->
nUndoMode
=
umAddToUndo
;
ed
->
undo_ctl_state
=
undoActive
;
ed
->
nParagraphs
=
1
;
ed
->
nLastSelStart
=
ed
->
nLastSelEnd
=
0
;
ed
->
last_sel_start_para
=
ed
->
last_sel_end_para
=
ed
->
pCursors
[
0
].
para
;
...
...
dlls/riched20/editor.h
View file @
40c54854
...
...
@@ -396,7 +396,7 @@ void ME_EmptyUndoStack(ME_TextEditor *editor) DECLSPEC_HIDDEN;
static
inline
BOOL
editor_undo_ignored
(
ME_TextEditor
*
editor
)
{
return
editor
->
nUndoMode
==
umIgnore
;
return
editor
->
undo_ctl_state
!=
undoActive
||
editor
->
nUndoMode
==
umIgnore
;
}
/* txtsrv.c */
...
...
dlls/riched20/editstr.h
View file @
40c54854
...
...
@@ -285,6 +285,12 @@ typedef enum {
umAddBackToUndo
}
ME_UndoMode
;
typedef
enum
{
undoActive
,
undoSuspended
,
undoDisabled
}
ME_UndoControlState
;
enum
undo_type
{
undo_insert_run
,
...
...
@@ -402,6 +408,7 @@ typedef struct tagME_TextEditor
int
nUndoStackSize
;
int
nUndoLimit
;
ME_UndoMode
nUndoMode
;
ME_UndoControlState
undo_ctl_state
;
int
nParagraphs
;
LONG
nLastSelStart
,
nLastSelEnd
;
ME_Paragraph
*
last_sel_start_para
,
*
last_sel_end_para
;
...
...
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