Skip to content
This repository
  • 131 commits
  • 105 files changed
  • 0 comments
  • 25 contributors
Dec 10, 2012
Marijn Haverbeke Bump version post-3.0 a1b3810
Marijn Haverbeke Fix date noted for release 3.0 14eb2a3
Yunchi Luo mightyguava [vim keymap] Fix mapping : cc6548d
Dec 11, 2012
Marijn Haverbeke [bidi algorithm] Always treat the boundaries of a line as being LTR
Issue #1079
4d8eeeb
Brandon Frohs bfrohs [markdown] Fix incorrect highlighting of linked images. ca72f85
James Campos aeosynth [readme] add link to CONTRIBUTING.md 971cb4e
Marijn Haverbeke Force a horizontal align after changing the editor width
This prevents the gutter, when a long line is deleted, from forcing a scroll
on the scroller element, and thus confusing the scrollbar computation.

Issue #1075
9ac6894
Marijn Haverbeke Clip scrollLeft updates to max scroll pos
Prevents overcompensating when re-aligning the gutter.

Closes #1074
d5a244f
Marijn Haverbeke Opera seems to have stopped flipping ctrlKey and metaKey on OS X
And promptly broke CodeMirror in the process.

Issue #1050
d7326ff
Marijn Haverbeke Work around webkit bugs related to super-long lines
Pasting in a 120k-character line caused two problems

 - The textarea, when wrap=off is set, simply cuts off anything after char
   57444. Removing the wrap attribute fixed this.
 - Text nodes longer then (again) 57444 seem not to be rendered beyond that
   character unless wrapped. A hack was added to slice up spans that were
   too long.

Also removes the 'stop highlighting at character 5000' hack, since that
appears to be the least of our worries (highlighting is much faster than
rendering/layouting).

Closes #1080
c355154
Marijn Haverbeke Fix bug in iterateBidiSections
When the from and to arguments were equal and the line had an order, it
would never call the callback.

Issue #1079
db3d641
Brandon Frohs bfrohs [markdown] Prevent leading spaces from being styled.
Regression introduced in 984e155.
d2e6558
Dec 12, 2012
Marijn Haverbeke Add code school to real-world uses 6b9d5c2
Marijn Haverbeke Add rtlMoveVisually option e32beae
Marijn Haverbeke Reinstate disabling highlighting on long lines
It does make a difference after all.
caed2cb
Marijn Haverbeke [css mode] Fix bug in matching of classes 2c6294f
Dec 13, 2012
Ian Wehrman iwehrman track global variables alongside locals in the parser state 1bcc976
Ian Wehrman iwehrman use globals as well as locals in hinting 426a389
Marijn Haverbeke Fix bug in Opera version parsing 65e1552
Dec 17, 2012
Thomas Schmid thsmi Fix strict mode argument redefinition warnings
Firefox complains throws warnings when "Strict Mode" is turned on. This pull request fixes two of those:

    Warning: TypeError: variable data redeclares argument
    Source File: chrome://sieve/content/libs/CodeMirror/lib/codemirror.js
    Line: 845,Column: 8
    Source Code: var data = data || measureLine(cm, line), dir = -1;

    Warning: TypeError: variable spec redeclares argument
    Source File: chrome://sieve/content/libs/CodeMirror/lib/codemirror.js
    Line: 2870, Column: 8
    Source Code: var spec = CodeMirror.resolveMode(spec);
9faf32f
Yunchi Luo mightyguava [vim keymap] Implement :substitute 44c9ad0
Yunchi Luo mightyguava [vim keymap] Implement <, > marks 3d4184b
Yunchi Luo mightyguava Add initial value option to openDialog. 916a8e8
Yunchi Luo mightyguava [vim keymap] Set Ex initial range to selection if in visual mode 6716132
Marijn Haverbeke Clip input to indexFromPos 4bdf569
Dec 18, 2012
Marijn Haverbeke Re-focus old activeElement after patchDisplay
It may have been a widget that was removed and put back again, thus
losing focus.

Issue #1094
3e3eeba
Marijn Haverbeke Don't thread state for stateless modes
Saves some work for modes that don't have a startState method.
b80607d
Marijn Haverbeke Add addOverlay/removeOverlay methods
For cheaply adding extra styling without going over
the whole document and doing markText.

Issue #1069
79a7a08
Marijn Haverbeke Missing semicolon. 7d30ce3
Marijn Haverbeke Fix logic error in 79a7a08 a68af5f
Marijn Haverbeke Hoist focus-restoration out of patchDisplay into updateDisplayInner
Issue #1094
ab8c771
Marijn Haverbeke Fix Opera version detection in test suite (for marking expected failu…
…res)

Closes #1095
43345de
Marijn Haverbeke Another missing semicolon 3f0b43f
Federico Razzoli santec Add generic SQL mode afd2e8a
Marijn Haverbeke Integrate SQL mode 0b97e94
Narciso Jaramillo njx Unit test for line widget focus restoration fee2bb7
Marijn Haverbeke [tester] Make sure test editor is unhidden when tests fail in debug mode ec508eb
Marijn Haverbeke Allow a specific set of dimensions to be passed to scrollIntoView
Closes #1098
836e16a
Dec 19, 2012
Narciso Jaramillo njx Ignore certain events when target is inside a line widget 9a076b9
Marijn Haverbeke Fix typo in 9a076b9 b64f3a1
Narciso Jaramillo njx Fix typo in manual 053553f
Marijn Haverbeke Reset line height when removing a line widget
Closes #1102
4ac0706
Dec 20, 2012
Marijn Haverbeke Add Toolsverse Data Explorer to real-world uses 182c6f5
Marijn Haverbeke [clike mode] Support a dontAlignCalls configuration option
Issue #1053
6902d1e
Marijn Haverbeke Mention release 2.37 on project page 47988c0
Dec 30, 2012
Marijn Haverbeke Add my2ndgeneration to real-world uses 88852e7
Marijn Haverbeke Make cursor elements div instead of pre elements
There is no reason for styling intended for lines to affect the cursor.
1fc80e4
Peter Kroon peterkroon update test for iPAD 4
closes #993
4d9c888
Marijn Haverbeke Update xml completion demo to new interface for closetag add-on
Closes #1106
c46ffbe
Marijn Haverbeke Mention in manual that replacedWith expects an inline elt
Issue #1109
e778265
Thomas Schmid thsmi [sieve mode] Better indentation 0296db8
nerbert Add util/collapserange and demo
Collapsing code by selecting a range to collapse in the gutter.
5490e6d
Marijn Haverbeke [util/collapserange] Document and rewrite a71d2bb
Yunchi Luo mightyguava [vim keymap] Fix :map 8857979
lindt lindt added support for D programming language (visit: http://www.dlang.org) b06009d
Marijn Haverbeke Integrate D mode 1082693
Marijn Haverbeke [util/foldcode] Fix bug in indentRangeFinder
Closes #1121
1dad2c9
Marijn Haverbeke [util/formatting] Don't add a trailing newline unless the formatter w…
…ants one

Issue #1120
f88f3e9
Marijn Haverbeke Fix bug in code that compensates for strange browser line wrapping
Closes #1123
2dff7cb
Marijn Haverbeke Revert debugging change 634acc1
Jan 02, 2013
Eric Allam ericallam Add a Sass mode 3e8821c
Marijn Haverbeke [sass mode] Integrate new mode e27564b
Marijn Haverbeke [sass mode] Clean up missing semicolons, unused vars, and trailing space 7f87bab
Marijn Haverbeke Expose TextMarker constructor, add getOptions method to it
Issue #1111
0921d57
Marijn Haverbeke Add overflow: auto to line widget wrapper to prevent margin leaking
(If the widget had a margin, that margin would end up outside the wrapper, throwing off
line height measurement.)

Might be related to issue #925
42ab247
Marijn Haverbeke Support showIfHidden option in line widgets
Issue #1109
4723904
Peter Kroon peterkroon Link collapserange demo from folding demo. 043a6f3
Maximilian Hils mhils Enable JS autocomplete on other variable types.
mode-javascript sets "variable-2" or "variable-3" types, too.
They should trigger autocompletion, too.

Test case:
function(obj.
392c6bb
Yunchi Luo mightyguava Fix fat cursor be495eb
Yunchi Luo mightyguava [vim keymap] Catch up on unit tests 3163310
Yunchi Luo mightyguava [vim keymap] Search highlighting using overlay mode 8a1df14
Marijn Haverbeke Fix bug introduced in 4723904 55d4f13
Marijn Haverbeke [util/collapserange] Don't depend on function definition order inside…
… block

Closes #1128
9497647
Jan 04, 2013
Marijn Haverbeke Two more real-world uses 5e3fe8c
Yunchi Luo mightyguava [vim keymap] Add count and empty query support for :s 18d9c45
Yunchi Luo mightyguava [vim keymap] Add {,} motions 9190a49
Jan 07, 2013
Marijn Haverbeke [test suite] Turn on rtlMoveVisually explicitly in rtl movement test 023f240
robertop23 robertop23 Create python-hint.js 51696b4
Marijn Haverbeke Integrate python-hint.js bd09554
Marijn Haverbeke [util/python-hint] Clean up to pass linter e4f4e14
benbro benbro Add missing argument in event listener d81ace3
Jan Jongboom janjongboom application/javascript is also a valid mime for JS
According to [RFC 4329](http://www.rfc-editor.org/rfc/rfc4329.txt) the MIME type for javascript files should be either application/javascript or application/ecmascript.
546c346
Marijn Haverbeke Make sure loadMode triggers a redraw
Closes #1137
21e22c6
Federico Razzoli santec mode SQL: added special syntax for datetimes
* standard SQL syntax for date/time/timestamp values
* ODBC syntax for date/time/timestamp
* added new syntax in index.html
8f52a02
Marijn Haverbeke Make the hidden textarea wide on Webkit, to prevent wrap=off from mak…
…ing big pastes slow

Issue #1136
c9fc367
Marijn Haverbeke Fix IE problem with clearing parentNode relationships on innerHTML = "" 73cc299
pablopla pablopla Add mode/meta.js, which lists all modes in the distribution 5a72f24
Jan 08, 2013
Marijn Haverbeke Add amber-lang.net to real-world uses 763e596
Stas Kobzar staskobzar Add Asterisk dialplan mode b637c39
Marijn Haverbeke Add a separate file listing all modes, unlist obscure ones on the fro…
…nt-page

The list is getting out of hand. Which is great, actually, but the front-page
shouldn't be dominated by it.
514b496
Shmuel Englard SamuelEnglard [util/runmodeonly]
Addeds a new util called run mode only that can be used in place of code
that only used codemirror.js and runmode.js for run mode
7445a7b
Marijn Haverbeke [util/runmodeonly] Don't directly assign to global variable
It upsets the linter.
7858e25
Marijn Haverbeke Organize add-on scripts into subdirectories
Closes #1133
eb2969f
Marijn Haverbeke Fix links in full mode list
Closes #1144
9e7501b
Peter Kroon peterkroon Update LICENSE
Set correct year in license.
21380af
Jan 10, 2013
Marijn Haverbeke Check, after updating display, if viewport is really filled
Due to changed line heights, the rendered content might not reach to
the viewport bottom.

Issue #1147
ee07146
Marijn Haverbeke Make line widget handles objects with methods. Handle widget height b…
…etter

Closes #1147

Widget handles now have .clear() and .changed() methods. The second informs CodeMirror
that the widget changed, and causes it to recompute the line height for the widget's
line.

Fixes some sloppiness in the tracking of widget heights.
db1b282
Marijn Haverbeke Don't set innerHTML in IE
It damages parent-child relationships in subnodes, which we might still
need later.
5af6bb0
Marijn Haverbeke Make sure widgets are added to vertical scroll size
Closes #1148
7777dce
Jan 11, 2013
Rahul Primigenus Correct spelling from "givne" to "given". d8009de
Narciso Jaramillo njx Make temporary wheel measurement vars per-instance ece10c7
Marijn Haverbeke Attach wheel measuring properties to display, not directly to CM inst…
…ance

Issue #1151
7f64ae4
Jason San Jose jasonsanjose widget.remove() should be widget.clear() 2cf2913
Marijn Haverbeke Add realtime.io to real-world uses 67084c2
Marijn Haverbeke Remove improperly copy-pasted piece in mode/sieve/LICENSE 2e3c49a
Jan 12, 2013
Marijn Haverbeke [test/mode_test.js] Remove some obsolete cruft d9a8609
Marijn Haverbeke [tests] Overhaul mode testing framework
Tests are now specified in a less redundant format, and should be
easier to read and write.
a2ad87f
Marijn Haverbeke Make the tester accurately report total test count
Even when a subset is selected.
03f8aae
Jan 14, 2013
Marijn Haverbeke Add MIHTool to real-world uses 8416706
Marijn Haverbeke Reinstate the fixedGutter option 2165c76
Marijn Haverbeke Use document.documentMode when detecting IE versions
Closes #1149
c606a14
sonson sonson Support Scala in GFM mode. 4857377
Aleksandr Motsjonov soswow SearchCursor.matches() doesn't work properly if query is /.*/ issue #… 8eca1bc
Marijn Haverbeke Guard against search cursors with a query of ""
They'd exhibit the same infinite traversal behavior mentioned in
#1155
1960b0d
Jan 16, 2013
Federico Razzoli santec Improve Mode SQL
* mysql & mariadb:
** .21 syntax
** .table_name syntax
** added keywords
* MIMEs define their operatorChars
* MIMEs have a support prop
* use spaces as tab in index.html for consistency
* some return false -> null
* more comments
b1b1dd5
Marijn Haverbeke Fix bug in lineIsHidden test
It would occasionally mark lines as hidden that were needed to display
parts of other lines.

Issue #1161
9e4a3cd
Marijn Haverbeke Update maxLine when adding or clearing a collapsed range
Closes #1161
d9d9eb7
Marijn Haverbeke Adjust test to work in Phantom.js 1699472
Marijn Haverbeke [gfm mode] Remove link to nonexistent stylesheet 2dafec9
Marijn Haverbeke [gfm mode] Simplify URL regexp, since it's crashing Chrome
Issue #1160
1c41c41
Jan 21, 2013
Shaun Gilchrist shaunxcode Add APL mode 7fc76ca
Marijn Haverbeke Integrate APL mode 180e752
Marijn Haverbeke Properly restore horizonal scroll position on refresh() calls
Issue #1164
2f37f66
Marijn Haverbeke Fix workaround for webkit bug in rendering of overlong text nodes
Issue #1163
48c2e8e
Peter Kroon peterkroon Add Opera Mobile UA to the mobile list
Add Opera Mobile UA to the mobile list.
8388914
Marijn Haverbeke Make sure the editor is re-focused after a no-op drag
Closes #1168
a14e1e9
Marijn Haverbeke [formatting addon] Don't line-break around inline tags e4c42b5
Adam King aking Fix brace indenting for clojure maps. e653b1b
Peter Kroon peterkroon Append image to wrapper
Append image to wrapper. No more appending to document.
Works with multiple editors. Tested: 3 editors beneath each other on 1 page.
f2d2938
Marijn Haverbeke Clean up Opera setDragImage patch
Issue #1166
4797771
Marijn Haverbeke Mark release 3.01 32abd31