remove old delta shim from vim mode
This commit is contained in:
parent
067a1ee68b
commit
60dd224d96
1 changed files with 0 additions and 8 deletions
|
|
@ -170,13 +170,6 @@ define(function(require, exports, module) {
|
||||||
return this.ace.inVirtualSelectionMode && this.ace.selection.index;
|
return this.ace.inVirtualSelectionMode && this.ace.selection.index;
|
||||||
};
|
};
|
||||||
this.onChange = function(delta) {
|
this.onChange = function(delta) {
|
||||||
var oldDelta = delta.data;
|
|
||||||
delta = {
|
|
||||||
start: oldDelta.range.start,
|
|
||||||
end: oldDelta.range.end,
|
|
||||||
action: oldDelta.action,
|
|
||||||
lines: oldDelta.lines || [oldDelta.text]
|
|
||||||
};// v1.2 api compatibility
|
|
||||||
if (delta.action[0] == 'i') {
|
if (delta.action[0] == 'i') {
|
||||||
var change = { text: delta.lines };
|
var change = { text: delta.lines };
|
||||||
var curOp = this.curOp = this.curOp || {};
|
var curOp = this.curOp = this.curOp || {};
|
||||||
|
|
@ -559,7 +552,6 @@ define(function(require, exports, module) {
|
||||||
highlight.session = null;
|
highlight.session = null;
|
||||||
};
|
};
|
||||||
highlight.updateOnChange = function(delta) {
|
highlight.updateOnChange = function(delta) {
|
||||||
delta = delta.data.range;// v1.2 api compatibility
|
|
||||||
var row = delta.start.row;
|
var row = delta.start.row;
|
||||||
if (row == delta.end.row) highlight.cache[row] = undefined;
|
if (row == delta.end.row) highlight.cache[row] = undefined;
|
||||||
else highlight.cache.splice(row, highlight.cache.length);
|
else highlight.cache.splice(row, highlight.cache.length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue