kopia lustrzana https://github.com/c9/core
do not split deltas in multiselct action
rodzic
33833a7ec8
commit
4ec8aca648
|
@ -966,8 +966,11 @@ var Editor = function(renderer, session) {
|
|||
var transform = mode.transformAction(session.getState(cursor.row), 'insertion', this, session, text);
|
||||
if (transform) {
|
||||
if (text !== transform.text) {
|
||||
this.session.mergeUndoDeltas = false;
|
||||
this.$mergeNextCommand = false;
|
||||
// keep automatic insertion in a separate delta, unless it is in multiselect mode
|
||||
if (!this.inVirtualSelectionMode) {
|
||||
this.session.mergeUndoDeltas = false;
|
||||
this.mergeNextCommand = false;
|
||||
}
|
||||
}
|
||||
text = transform.text;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue