do not split deltas in multiselct action

pull/385/head
nightwing 2016-12-15 23:29:19 +00:00
rodzic 33833a7ec8
commit 4ec8aca648
1 zmienionych plików z 5 dodań i 2 usunięć

7
node_modules/ace/lib/ace/editor.js wygenerowano vendored
Wyświetl plik

@ -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;