# Release 5.38.0

**URL:** <https://discuss.codemirror.net/t/release-5-38-0/1729>\
**Category:** Announce\
**Created:** [May 22, 2018, 10:33am UTC](https://discuss.codemirror.net/t/release-5-38-0/1729 "2018-05-22T10:33:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)\
**Post date:** [May 22, 2018, 10:33am UTC](https://discuss.codemirror.net/t/release-5-38-0/1729/1 "2018-05-22T10:33:51Z")

</div>

You can read the [new patches](https://github.com/codemirror/codemirror/compare/5.37.0...5.38.0) or download the [zip file](http://codemirror.net/codemirror-5.38.0.zip).

## Release notes

### Bug fixes

Improve reliability of noticing a missing mouseup event during dragging.

Make sure `getSelection` is always called on the correct document.

Fix interpretation of line breaks and non-breaking spaces inserted by renderer in contentEditable mode.

Work around some browsers inexplicably making the fake scrollbars focusable.

Make sure `coordsChar` doesn’t return positions inside collapsed ranges.

[javascript mode](http://codemirror.net/mode/javascript/): Support block scopes, bindingless catch, bignum suffix, `s` regexp flag.

[markdown mode](http://codemirror.net/mode/markdown/): Adjust a wasteful regexp.

[show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint): Allow opening the control without any item selected.

### New features

New theme: [darcula](http://codemirror.net/demo/theme.html#darcula).

[dialog addon](http://codemirror.net/doc/manual.html#addon_dialog): Add a CSS class (`dialog-opened`) to the editor when a dialog is open.
