fix exitMultiSelectMode
This commit is contained in:
parent
a7cccae039
commit
259d48ea1a
2 changed files with 2 additions and 2 deletions
|
|
@ -1800,7 +1800,7 @@ var Editor = function(renderer, session) {
|
|||
|
||||
this.$blockScrolling += 1;
|
||||
// todo: find a way to automatically exit multiselect mode
|
||||
this.exitMultiSelectMode && this.exitMultiSelectMode()
|
||||
this.exitMultiSelectMode && this.exitMultiSelectMode();
|
||||
this.moveCursorTo(lineNumber - 1, column || 0);
|
||||
this.$blockScrolling -= 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ var Editor = require("./editor").Editor;
|
|||
* @method Editor.exitMultiSelectMode
|
||||
**/
|
||||
this.exitMultiSelectMode = function() {
|
||||
if (this.inVirtualSelectionMode)
|
||||
if (!this.inMultiSelectMode || this.inVirtualSelectionMode)
|
||||
return;
|
||||
this.multiSelect.toSingleRange();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue