remove undefined editor variable
This commit is contained in:
parent
9e85280af5
commit
fed582bda6
2 changed files with 5 additions and 11 deletions
|
|
@ -1772,7 +1772,7 @@ var Editor = function(renderer, session) {
|
|||
|
||||
var range = this.session.getBracketRange(cursor);
|
||||
if (!range) {
|
||||
range = editor.find({
|
||||
range = this.find({
|
||||
needle: /[{}()\[\]]/g,
|
||||
preventScroll:true,
|
||||
start: {row: cursor.row, column: cursor.column - 1}
|
||||
|
|
@ -1787,10 +1787,10 @@ var Editor = function(renderer, session) {
|
|||
pos = range && range.cursor || pos;
|
||||
if (pos) {
|
||||
if (select) {
|
||||
if (range && range.isEqual(editor.getSelectionRange()))
|
||||
if (range && range.isEqual(this.getSelectionRange()))
|
||||
this.clearSelection();
|
||||
else
|
||||
this.selection.selectTo(pos.row, pos.column);
|
||||
this.selection.selectTo(pos.row, pos.column);
|
||||
} else {
|
||||
this.clearSelection();
|
||||
this.moveCursorTo(pos.row, pos.column);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue