Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
8fc924ea
Commit
8fc924ea
authored
11 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
Fix test suite for
00e4259b
parent
3e745fab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/manual.html
+2
-2
2 additions, 2 deletions
doc/manual.html
test/multi_test.js
+1
-1
1 addition, 1 deletion
test/multi_test.js
with
3 additions
and
3 deletions
doc/manual.html
+
2
−
2
View file @
8fc924ea
...
...
@@ -1229,8 +1229,8 @@
<dt
id=
"setSelections"
><code><strong>
doc.setSelections
</strong>
(ranges: array
<
{anchor, head}
>
, ?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>
...
...
This diff is collapsed.
Click to expand it.
test/multi_test.js
+
1
−
1
View file @
8fc924ea
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment