diff --git a/lib/ace/mouse_handler.js b/lib/ace/mouse_handler.js index 4d4cc05a..5e836383 100644 --- a/lib/ace/mouse_handler.js +++ b/lib/ace/mouse_handler.js @@ -120,7 +120,7 @@ var MouseHandler = function(editor) { if (self.$clickSelection) { if (self.$clickSelection.contains(cursor.row, cursor.column)) { - self.selection.setSelectionRange(self.$clickSelection); + editor.selection.setSelectionRange(self.$clickSelection); } else { if (self.$clickSelection.compare(cursor.row, cursor.column) == -1) { var anchor = self.$clickSelection.end;