mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
commit
65b2b3a651
@ -203,12 +203,14 @@ define([
|
|||||||
// append the introspection result, in order, at at the beginning of
|
// append the introspection result, in order, at at the beginning of
|
||||||
// the table and compute the replacement range from current cursor
|
// the table and compute the replacement range from current cursor
|
||||||
// positon and matched_text length.
|
// 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) {
|
for (i = matches.length - 1; i >= 0; --i) {
|
||||||
filtered_results.unshift({
|
filtered_results.unshift({
|
||||||
str: matches[i],
|
str: matches[i],
|
||||||
type: "introspection",
|
type: "introspection",
|
||||||
from: utils.from_absolute_cursor_pos(this.editor, start),
|
from: from,
|
||||||
to: utils.from_absolute_cursor_pos(this.editor, end)
|
to: to
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user