fix pasting 2 lines in multiselect mode
This commit is contained in:
parent
48aa35c081
commit
f389660100
1 changed files with 1 additions and 1 deletions
|
|
@ -539,7 +539,7 @@ var Editor = require("./editor").Editor;
|
|||
var lines = text.split(/\r\n|\r|\n/);
|
||||
var ranges = this.selection.rangeList.ranges;
|
||||
|
||||
if (lines.length > ranges.length || (lines.length <= 2 || !lines[1]))
|
||||
if (lines.length > ranges.length || (lines.length <= 2 && !lines[1]))
|
||||
return this.commands.exec("insertstring", this, text);
|
||||
|
||||
for (var i = ranges.length; i--; ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue