fix pasting 2 lines in multiselect mode

This commit is contained in:
nightwing 2013-04-10 16:20:17 +04:00
commit f389660100

View file

@ -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--; ) {