Show More
@@ -203,12 +203,14 b' define([' | |||||
203 | // append the introspection result, in order, at at the beginning of |
|
203 | // append the introspection result, in order, at at the beginning of | |
204 | // the table and compute the replacement range from current cursor |
|
204 | // the table and compute the replacement range from current cursor | |
205 | // positon and matched_text length. |
|
205 | // positon and matched_text length. | |
|
206 | var from = utils.from_absolute_cursor_pos(this.editor, start); | |||
|
207 | var to = utils.from_absolute_cursor_pos(this.editor, end); | |||
206 | for (i = matches.length - 1; i >= 0; --i) { |
|
208 | for (i = matches.length - 1; i >= 0; --i) { | |
207 | filtered_results.unshift({ |
|
209 | filtered_results.unshift({ | |
208 | str: matches[i], |
|
210 | str: matches[i], | |
209 | type: "introspection", |
|
211 | type: "introspection", | |
210 | from: utils.from_absolute_cursor_pos(this.editor, start), |
|
212 | from: from, | |
211 | to: utils.from_absolute_cursor_pos(this.editor, end) |
|
213 | to: to | |
212 | }); |
|
214 | }); | |
213 | } |
|
215 | } | |
214 |
|
216 |
General Comments 0
You need to be logged in to leave comments.
Login now