Skip to content
Snippets Groups Projects
Commit 8fc924ea authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Fix test suite for 00e4259b

parent 3e745fab
No related branches found
No related tags found
No related merge requests found
......@@ -1229,8 +1229,8 @@
<dt id="setSelections"><code><strong>doc.setSelections</strong>(ranges: array&lt;{anchor, head}&gt;, ?primary: integer, ?options: object)</code></dt>
<dd>Sets a new set of selections. There must be at least one
selection in the given array. When <code>primary</code> is
given, it determines which selection is the primary one
(defaults to the last one). Supports the same options as <a href="#setSelection"><code>setSelection</code></a>.</dd>
given, it determines which selection is the primary one.
Supports the same options as <a href="#setSelection"><code>setSelection</code></a>.</dd>
<dt id="addSelection"><code><strong>doc.addSelection</strong>(anchor: {line, ch}, ?head: {line, ch})</code></dt>
<dd>Adds a new selection to the existing set of selections, and
makes it the primary selection.</dd>
......
......@@ -145,7 +145,7 @@
if (arg.head) sels.push(arg);
else sels.push({head: arg, anchor: arg});
}
cm.setSelections(sels);
cm.setSelections(sels, sels.length - 1);
}
testCM("indentSelection", function(cm) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment