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);
|
var transform = mode.transformAction(session.getState(cursor.row), 'insertion', this, session, text);
|
||||||
if (transform) {
|
if (transform) {
|
||||||
if (text !== transform.text) {
|
if (text !== transform.text) {
|
||||||
this.session.mergeUndoDeltas = false;
|
// keep automatic insertion in a separate delta, unless it is in multiselect mode
|
||||||
this.$mergeNextCommand = false;
|
if (!this.inVirtualSelectionMode) {
|
||||||
|
this.session.mergeUndoDeltas = false;
|
||||||
|
this.mergeNextCommand = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
text = transform.text;
|
text = transform.text;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue