| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index 8207eb6381b2216ff33bb1f6d3992c1edec8bb11..4e6d3b6661db4cdd5b148511f4244d95bca3b0dc 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -965,6 +965,8 @@ void Editor::AppliedEditing(CompositeEditCommand* cmd) {
|
| // Only register undo entry when combined with other commands.
|
| if (!last_edit_command_->GetUndoStep())
|
| undo_stack_->RegisterUndoStep(last_edit_command_->EnsureUndoStep());
|
| + last_edit_command_->EnsureUndoStep()->SetEndingSelection(
|
| + cmd->EnsureUndoStep()->EndingSelection());
|
| last_edit_command_->AppendCommandToUndoStep(cmd);
|
| } else {
|
| // Only register a new undo command if the command passed in is
|
|
|