Merge pull request #7888 from Carreau/horse

Don't recompute values
pull/37/head
Min RK 11 years ago
commit 65b2b3a651

@ -203,12 +203,14 @@ define([
// append the introspection result, in order, at at the beginning of
// the table and compute the replacement range from current cursor
// positon and matched_text length.
var from = utils.from_absolute_cursor_pos(this.editor, start);
var to = utils.from_absolute_cursor_pos(this.editor, end);
for (i = matches.length - 1; i >= 0; --i) {
filtered_results.unshift({
str: matches[i],
type: "introspection",
from: utils.from_absolute_cursor_pos(this.editor, start),
to: utils.from_absolute_cursor_pos(this.editor, end)
from: from,
to: to
});
}

Loading…
Cancel
Save