Skip to content

Commit 9f31ef7

Browse files
committed
Merge remote-tracking branch 'codemirror/master'
2 parents a733d33 + 2a8e2e0 commit 9f31ef7

File tree

8 files changed

+66
-6
lines changed

8 files changed

+66
-6
lines changed

AUTHORS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ benbro
7575
Beni Cherniavsky-Paskin
7676
Benjamin DeCoste
7777
Ben Keen
78+
Ben Mosher
7879
Bernhard Sirlinger
7980
Bert Chang
8081
Billy Moon
@@ -137,6 +138,7 @@ David Barnett
137138
David Mignot
138139
David Pathakjee
139140
David Vázquez
141+
David Whittington
140142
deebugger
141143
Deep Thought
142144
Devin Abbott
@@ -184,6 +186,7 @@ galambalazs
184186
Gautam Mehta
185187
Gavin Douglas
186188
gekkoe
189+
geowarin
187190
Gerard Braad
188191
Gergely Hegykozi
189192
Giovanni Calò
@@ -198,6 +201,7 @@ greengiant
198201
Gregory Koberger
199202
Guillaume Massé
200203
Guillaume Massé
204+
guraga
201205
Gustavo Rodrigues
202206
Hakan Tunc
203207
Hans Engel
@@ -274,13 +278,15 @@ ju1ius
274278
Juan Benavides Romero
275279
Jucovschi Constantin
276280
Juho Vuori
281+
Julien Rebetez
277282
Justin Andresen
278283
Justin Hileman
279284
280285
kaniga
281286
karevn
282287
Kayur Patel
283288
Ken Newman
289+
ken restivo
284290
Ken Rockot
285291
Kevin Earls
286292
Kevin Sawicki
@@ -426,7 +432,9 @@ peter
426432
Peter Flynn
427433
peterkroon
428434
Peter Kroon
435+
Philipp A
429436
Philip Stadermann
437+
Pierre Gerold
430438
Piët Delport
431439
prasanthj
432440
Prasanth J
@@ -476,6 +484,7 @@ Shiv Deepak
476484
Shmuel Englard
477485
Shubham Jain
478486
silverwind
487+
sinkuu
479488
snasa
480489
soliton4
481490
sonson
@@ -518,6 +527,7 @@ Tom MacWright
518527
Tony Jian
519528
Travis Heppe
520529
Triangle717
530+
Tristan Tarrant
521531
TSUYUSATO Kitsune
522532
twifkak
523533
Vestimir Markov

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## 5.13.0 (2016-03-21)
2+
3+
### New features
4+
5+
New DOM event forwarded: [`"dragleave"`](http://codemirror.net/doc/manual.html#event_dom).
6+
7+
[protobuf mode](http://codemirror.net/mode/protobuf/index.html): Newly added.
8+
9+
### Bugfixes
10+
11+
Fix problem where [`findMarks`](http://codemirror.net/doc/manual.html#findMarks) sometimes failed to find multi-line marks.
12+
13+
Fix crash that showed up when atomic ranges and bidi text were combined.
14+
15+
[show-hint addon](http://codemirror.net/demo/complete.html): Completion widgets no longer close when the line indented or dedented.
16+
17+
[merge addon](http://codemirror.net/demo/merge.html): Fix bug when merging chunks at the end of the file.
18+
19+
[placeholder addon](http://codemirror.net/doc/manual.html#addon_placeholder): No longer gets confused by [`swapDoc`](http://codemirror.net/doc/manual.html#swapDoc).
20+
21+
[simplescrollbars addon](http://codemirror.net/doc/manual.html#addon_simplescrollbars): Fix invalid state when deleting at end of document.
22+
23+
[clike mode](http://codemirror.net/mode/clike/index.html): No longer gets confused when a comment starts after an operator.
24+
25+
[markdown mode](http://codemirror.net/mode/markdown/index.html): Now supports CommonMark-style flexible list indentation.
26+
27+
[dylan mode](http://codemirror.net/mode/dylan/index.html): Several improvements and fixes.
28+
129
## 5.12.0 (2016-02-19)
230

331
### New features

doc/compress.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ <h2>Script compression helper</h2>
3636
<input type="hidden" id="download" name="download" value="codemirror-compressed.js"/>
3737
<p>Version: <select id="version" onchange="setVersion(this);" style="padding: 1px;">
3838
<option value="http://codemirror.net/">HEAD</option>
39+
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=5.13.0;f=">5.13</option>
3940
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=5.12.0;f=">5.12</option>
4041
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=5.11.0;f=">5.11</option>
4142
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=5.10.0;f=">5.10</option>

doc/manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<section class=first id=overview>
7070
<h2 style="position: relative">
7171
User manual and reference guide
72-
<span style="color: #888; font-size: 1rem; position: absolute; right: 0; bottom: 0">version 5.12.1</span>
72+
<span style="color: #888; font-size: 1rem; position: absolute; right: 0; bottom: 0">version 5.13.1</span>
7373
</h2>
7474

7575
<p>CodeMirror is a code-editor component that can be embedded in

doc/releases.html

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,26 @@ <h2>Release notes and version history</h2>
3030

3131
<h2>Version 5.x</h2>
3232

33+
<p class="rel">21-03-2016: <a href="http://codemirror.net/codemirror-5.13.zip">Version 5.13</a>:</p>
34+
35+
<ul class="rel-note">
36+
<li>New DOM event forwarded: <a href="http://codemirror.net/doc/manual.html#event_dom"><code>&quot;dragleave&quot;</code></a>.</li>
37+
<li><a href="http://codemirror.net/mode/protobuf/index.html">protobuf mode</a>: Newly added.</li>
38+
<li>Fix problem where <a href="http://codemirror.net/doc/manual.html#findMarks"><code>findMarks</code></a> sometimes failed to find multi-line marks.</li>
39+
<li>Fix crash that showed up when atomic ranges and bidi text were combined.</li>
40+
<li><a href="http://codemirror.net/demo/complete.html">show-hint addon</a>: Completion widgets no longer close when the line indented or dedented.</li>
41+
<li><a href="http://codemirror.net/demo/merge.html">merge addon</a>: Fix bug when merging chunks at the end of the file.</li>
42+
<li><a href="http://codemirror.net/doc/manual.html#addon_placeholder">placeholder addon</a>: No longer gets confused by <a href="http://codemirror.net/doc/manual.html#swapDoc"><code>swapDoc</code></a>.</li>
43+
<li><a href="http://codemirror.net/doc/manual.html#addon_simplescrollbars">simplescrollbars addon</a>: Fix invalid state when deleting at end of document.</li>
44+
<li><a href="http://codemirror.net/mode/clike/index.html">clike mode</a>: No longer gets confused when a comment starts after an operator.</li>
45+
<li><a href="http://codemirror.net/mode/markdown/index.html">markdown mode</a>: Now supports CommonMark-style flexible list indentation.</li>
46+
<li><a href="http://codemirror.net/mode/dylan/index.html">dylan mode</a>: Several improvements and fixes.</li>
47+
<li>Full <a href="https://github.com/codemirror/CodeMirror/compare/5.12.0...5.13.0">list of patches</a></li>
48+
</ul>
49+
3350
<p class="rel">19-02-2016: <a href="http://codemirror.net/codemirror-5.12.zip">Version 5.12</a>:</p>
3451

35-
<ul>
52+
<ul class="rel-note">
3653
<li><a href="http://codemirror.net/demo/vim.html">Vim bindings</a>: Ctrl-Q is now an alias for Ctrl-V.</li>
3754
<li><a href="http://codemirror.net/demo/vim.html">Vim bindings</a>: The Vim API now exposes an <code>unmap</code> method to unmap bindings.</li>
3855
<li><a href="http://codemirror.net/demo/activeline.html">active-line addon</a>: This addon can now style the active line's gutter.</li>
@@ -55,7 +72,7 @@ <h2>Version 5.x</h2>
5572

5673
<p class="rel">20-01-2016: <a href="http://codemirror.net/codemirror-5.11.zip">Version 5.11</a>:</p>
5774

58-
<ul>
75+
<ul class="rel-note">
5976
<li>New modes: <a href="../mode/jsx/index.html">JSX</a>, <a href="../mode/haskell-literate/index.html">literate Haskell</a></li>
6077
<li>The editor now forwards more <a href="manual.html#event_dom">DOM events</a>: <code>cut</code>, <code>copy</code>, <code>paste</code>, and <code>touchstart</code>. It will also forward <code>mousedown</code> for drag events</li>
6178
<li>Fixes a bug where bookmarks next to collapsed spans were not rendered</li>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h2>This is CodeMirror</h2>
9696
</div>
9797
</div>
9898
<div class=actionsleft>
99-
Get the current version: <a href="http://codemirror.net/codemirror.zip">5.12</a>.<br>
99+
Get the current version: <a href="http://codemirror.net/codemirror.zip">5.13</a>.<br>
100100
You can see the <a href="https://github.com/codemirror/codemirror" title="Github repository">code</a> or<br>
101101
read the <a href="doc/releases.html">release notes</a>.<br>
102102
There is a <a href="doc/compress.html">minification helper</a>.

lib/codemirror.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@
747747

748748
function postUpdateDisplay(cm, update) {
749749
var viewport = update.viewport;
750+
750751
for (var first = true;; first = false) {
751752
if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {
752753
// Clip forced viewport to actual scrollable area.
@@ -766,6 +767,9 @@
766767
updateScrollbars(cm, barMeasure);
767768
}
768769

770+
if (parseInt(cm.display.gutters.style.height) > cm.display.scroller.clientHeight)
771+
cm.display.gutters.style.height = cm.display.scroller.clientHeight + "px"
772+
769773
update.signal(cm, "update", cm);
770774
if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {
771775
update.signal(cm, "viewportChange", cm, cm.display.viewFrom, cm.display.viewTo);
@@ -8889,7 +8893,7 @@
88898893

88908894
// THE END
88918895

8892-
CodeMirror.version = "5.12.1";
8896+
CodeMirror.version = "5.13.1";
88938897

88948898
return CodeMirror;
88958899
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codemirror",
3-
"version":"5.12.1",
3+
"version":"5.13.1",
44
"main": "lib/codemirror.js",
55
"description": "In-browser code editing made bearable",
66
"license": "MIT",

0 commit comments

Comments
 (0)