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
ca8e3139
Commit
ca8e3139
authored
Jun 18, 2004
by
Krishna Murthy
Committed by
Alexandre Julliard
Jun 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified EDIT_EM_Undo(): Removed undo buffer length check for
empty. EDIT_EM_ReplaceSel() is called with send_update parameter set to TRUE.
parent
803ca3cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
edit.c
controls/edit.c
+1
-3
No files found.
controls/edit.c
View file @
ca8e3139
...
@@ -3555,8 +3555,6 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
...
@@ -3555,8 +3555,6 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
return
!
(
es
->
style
&
ES_MULTILINE
);
return
!
(
es
->
style
&
ES_MULTILINE
);
ulength
=
strlenW
(
es
->
undo_text
);
ulength
=
strlenW
(
es
->
undo_text
);
if
(
ulength
==
0
)
return
!
(
es
->
style
&
ES_MULTILINE
);
utext
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
ulength
+
1
)
*
sizeof
(
WCHAR
));
utext
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
ulength
+
1
)
*
sizeof
(
WCHAR
));
...
@@ -3567,7 +3565,7 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
...
@@ -3567,7 +3565,7 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
EDIT_EM_SetSel
(
es
,
es
->
undo_position
,
es
->
undo_position
+
es
->
undo_insert_count
,
FALSE
);
EDIT_EM_SetSel
(
es
,
es
->
undo_position
,
es
->
undo_position
+
es
->
undo_insert_count
,
FALSE
);
EDIT_EM_EmptyUndoBuffer
(
es
);
EDIT_EM_EmptyUndoBuffer
(
es
);
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
utext
,
FALS
E
,
TRUE
);
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
utext
,
TRU
E
,
TRUE
);
EDIT_EM_SetSel
(
es
,
es
->
undo_position
,
es
->
undo_position
+
es
->
undo_insert_count
,
FALSE
);
EDIT_EM_SetSel
(
es
,
es
->
undo_position
,
es
->
undo_position
+
es
->
undo_insert_count
,
FALSE
);
/* send the notification after the selection start and end are set */
/* send the notification after the selection start and end are set */
EDIT_NOTIFY_PARENT
(
es
,
EN_CHANGE
,
"EN_CHANGE"
);
EDIT_NOTIFY_PARENT
(
es
,
EN_CHANGE
,
"EN_CHANGE"
);
...
...
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