• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bootstrapworld / codemirror-blocks / 41075429481
95%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2026 02:53PM UTC
Jobs 1
Files 67
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Oct 2026 02:51PM UTC coverage: 90.178% (-0.01%) from 90.191%
41075429481

push

github

schanzer
fix(api): a selected block no longer comes with a phantom cursor selection

Selecting a block (setSelection, setSelections, or clicking it) leaves the text
editor's own cursor wherever it was, because CodeMirror ignores an empty list of
ranges. listSelections then reported that cursor as a second, empty selection
next to the block: getSelections() returned ["(+ 1 2)", ""], getSelection()
ended with a stray separator, and replaceSelection() replaced the block and
also inserted the new text at the cursor (typically the end of the document).

listSelections now leaves the cursor out when blocks are selected; text that is
really selected between blocks stays, and with no block selected the cursor is
still the selection, as in CodeMirror.

Three specs in api-test.ts had recorded the old results ("(+ 1 2)MOO", and an
extra empty selection); they now expect the block alone. New specs in
api-selection-test.ts: one block, several blocks, replaceSelection, the cursor
with no block selected, and text selected next to a block. Three of them fail
without the fix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

2043 of 2470 branches covered (82.71%)

9 of 10 new or added lines in 1 file covered. (90.0%)

3544 of 3930 relevant lines covered (90.18%)

4501.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.9
-0.54% packages/codemirror-blocks/src/CodeMirror-api.tsx
Jobs
ID Job ID Ran Files Coverage
1 41075429481.1 30 Oct 2026 02:53PM UTC 67
90.18
GitHub Action Run
Source Files on build 41075429481
  • Tree
  • List 67
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 8e0b7f2d on github
  • Prev Build on master (#41074481595)
  • Next Build on master (#41081020778)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc