fix failing test
This commit is contained in:
parent
a185414f64
commit
b4d2cf810d
3 changed files with 2 additions and 5 deletions
|
|
@ -53,9 +53,6 @@ var testRanges = function(str) {
|
|||
};
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: "ACE multi_select.js",
|
||||
|
||||
"test: cstyle": function() {
|
||||
function testValue(line) {
|
||||
assert.equal(editor.getValue(), Array(4).join(line + "\n"));
|
||||
|
|
|
|||
|
|
@ -552,7 +552,8 @@ var Editor = require("./editor").Editor;
|
|||
var pos = anchor == this.multiSelect.anchor
|
||||
? range.cursor == range.start ? range.end : range.start
|
||||
: range.cursor;
|
||||
if (!isSamePoint(this.session.$clipPositionToDocument(pos.row, pos.column), anchor))
|
||||
if (pos.row != anchor.row
|
||||
|| this.session.$clipPositionToDocument(pos.row, pos.column).column != anchor.column)
|
||||
this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange());
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ var testNames = [
|
|||
"ace/keyboard/emacs_test",
|
||||
"ace/keyboard/keybinding_test",
|
||||
"ace/keyboard/vim_test",
|
||||
"ace/keyboard/vim2_test",
|
||||
"ace/layer/text_test",
|
||||
"ace/lib/event_emitter_test",
|
||||
"ace/mode/coffee/parser_test",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue