Skip to content
This repository
  • 116 commits
  • 137 files changed
  • 12 contributors
Jul 23, 2012
Marijn Haverbeke Test for end-of-line measurement bugs a7fb56d
Jul 24, 2012
Marijn Haverbeke Remove fundraiser banner 195b3a7
Jul 30, 2012
Tim Baumann Run test suite with PhantomJS and Travis 35e89c5
Marijn Haverbeke Show low-range ascii, zero-width space, byte-order marks as red dots
Closes #649
Marijn Haverbeke Update gutter when lineNumberFormatter is changed 42dac6a
Peter Kroon Typo, removed double clear word 57dcc05
Peter Kroon Update lib/codemirror.js
Remove double semicolon.
Marijn Haverbeke Reset editor width when switching to line wrapping
Closes #660
Marijn Haverbeke [clike mode] Add more MIMEs for C and C++ 42be39b
Marijn Haverbeke Restore functionality of binding a key to false
(This will cause it to pass through CM's key handlers unmolested.)
Marijn Haverbeke Adjust vert scrollbar in size when horiz one is visible
And fix some more scrolling-related confusion.

Closes #663
Marijn Haverbeke Fix brokenness introduced by last few patches 37476d5
Peter Kroon Store instance in a variable in demo/marker.html 1b94e9e
Marijn Haverbeke Simpler computation of docBottom in scrolling code 50b654c
Marijn Haverbeke [mode multiplexer] Be more careful about using indent method
Closes #670
Marijn Haverbeke [dialog util] Restore editor focus when button is pressed
Closes #671
Marijn Haverbeke Use measureLine when determining max line width
It used to use stringWidth, which ignored transformations applied to
the text (most notably, tab replacement), and produced bad results.

Closes #672
Jul 31, 2012
Marijn Haverbeke Clean up scrolling event handlers
They could get into an infinite recursion on Safari, causing
scrolling glitches.
Marijn Haverbeke New approach to normalizing scrollwheel deltas 3575c53
Marijn Haverbeke Make setSize also refresh e5f9692
Marijn Haverbeke Better error messages from test suite f487e88
Marijn Haverbeke Detect wrapped line jumps when rounding coords to characters
Issue #650
Marijn Haverbeke Stop suppressing pointer events
Issue #674
Marijn Haverbeke Remove debugging single-test limit 726c616
Marijn Haverbeke Fix new test to work with different zoom levels 4ff1fc0
Marijn Haverbeke Fix several bugs in search code 0634f2e
Marijn Haverbeke Make at least forward regexp search behave properly wrt $ and ^ 853794a
Marijn Haverbeke Make sure inside of scroller is always big enough to scroll
Issue #676
Joe Borawski Replace e.preventDefault() with e_preventDefault(e) f888e0d
Brandon Frohs Allow for hard wrapping within a blockquote d404873
Aug 01, 2012
Brandon Frohs Hide the cursor when printing 946cd65
Marijn Haverbeke Switch back to accurate total height computation in calculateScrollPos
Closes #679
Marijn Haverbeke Linting (semicolons, accidental globals) 03548bd
Marijn Haverbeke Add a linter, run it as part of the test suite ab7f49b
Page- Change vim iterList to a standard for loop.
This fixes an error in the case that extra properties have been added to
the array prototype.
Marijn Haverbeke Make sure display is updated properly on cursor movement
Closes #684
Marijn Haverbeke Switch main library over to strict mode 2b01218
Marijn Haverbeke Move 'use strict' inside of main function
To prevent problems with script concatenation.
Aug 03, 2012
Marijn Haverbeke Mention codemirror-announce list on project page 94782e4
Brandon Frohs Specify character encoding on all pages. f5eab94
Marijn Haverbeke Bail out of measureLine when editor is not in the DOM
That'll make getElementById fail to return our measure element,
which shouldn't break the whole editor anymore now.
Marijn Haverbeke Add some more random variance to temp element id baf89c4
Marijn Haverbeke [xml-hint] Move from .substr to .slice for old-IE compat, fix offset bug
Closes #692
Aug 06, 2012
Jan Keromnes Save memory on null pointers in Line object a2ca948
Jan Keromnes Remove some tailing spaces 659173a
Marijn Haverbeke Fix testsuite in IE dad0bd1
Marijn Haverbeke Make tests pass on Opera
And move browser detection up in the codemirror.js file, to prevent
further instances of 'use sniffing before actually doing it' bugs.
Pavel Feldman Migrate from innerHTML to DOM bindings / fragments. 0f44da0
Pavel Feldman Emulate textContent setter in case of IE 0a6bbc2
Marijn Haverbeke Clean up and optimize tab/invalid char rendering in getElement
Issue #698
Marijn Haverbeke Remove CodeMirror.htmlEscape
Issue #698
Pavel Feldman Add support for keywords in CSS mode 81ece33
Marijn Haverbeke Note about mobile browsers to browser support section on project page 1c8ac0d
Marijn Haverbeke Give scroller element a V scrollbar again
Hide it by overlaying it with our fake scrollbar. Remove explicit wheel handling
for reasons of being extremely hard to get right.

Issue #694
Aug 07, 2012
Brandon Frohs Add info about setting a key binding to FALSE 0ad9934
Marijn Haverbeke Fix inserting of HTML gutter markers
Closes #703
Pavel Feldman Pressing Up while on the first line should move cursor to (0,0) 4ec8a34
Aug 08, 2012
Marijn Haverbeke Use a more robust solution for biasing coordsChar to the right line
The old solution made clicking on tabs (and other wide characters) always
put the cursor *before* them, even when clicking near their right.
Marijn Haverbeke [javascript mode] Fix poor handling of : punctuation
Closes #708
Marijn Haverbeke [html mode] Turn on allowMissing so that <input checked> is valid
Closes #709
Marijn Haverbeke Add a test ensuring that clicking a tab's right half works f9c0741
Marijn Haverbeke Replace innerHTML in init code with DOM construction methods
This is easier to work with than the child/sibling pointer following
that was needed to get the elements out.

Also rename function createElement to elt, and make it possible to
pass an array of child nodes.
Marijn Haverbeke Add a mechanism for expected failure to the test driver 6f1c625
Marijn Haverbeke Set some tests to expect failure on IE7 df21300
Marijn Haverbeke Make tests pass on IE8 264ccbd
Marijn Haverbeke Add Codev to real-world uses b9b0e39
Marijn Haverbeke Make double-click selection distinguish between whitespace and punctu…
Aug 09, 2012
Marijn Haverbeke Properly pass tabSize to getTokenAt
It was creating a StringStream with a default tabSize.
Marijn Haverbeke Add a test for vertical scrollbar behavior
In non-wrapping mode
Marijn Haverbeke [tests] Add test for key binding subsystem 016daab
Marijn Haverbeke [tests] Add tests for cursor-motion commands e828092
Aug 10, 2012
Marijn Haverbeke [visibletabs demo] Use an image instead of a magic :after style
This fixes the problem where the tabs interfere with other text when only
a single character wide.

Issue #673
Brandon Frohs Only autofocus editor if another element isn't already focused. b1431bd
Marijn Haverbeke [tests] Fix assumptions in the face of browser quirks
Makes tests pass on IE, FF, and Opera again.

Apparently, toUpperCase isn't all that standards, and ß.toUpperCase()
produces SS on Webkit, ß on other browsers.

Also worked around some crumminess in the way IE7 reports clientWidth.

Issue #697
Peter Kroon [less mode] better handle css2, bugfixes 436fa05
Peter Kroon [visibletabs demo] Remove outdated text 2c2d45c
Marijn Haverbeke Revert "Only autofocus editor if another element isn't already focused."
This reverts commit b1431bd.

I pushed it by accident.
Marijn Haverbeke Add getViewport and onViewportChange to API
This allows client code to find out which part of the document
is currently being shown.
Marijn Haverbeke [visibletabs demo] Make arrow wider 65651f9
Marijn Haverbeke Fix bug in coordsChar
Page-up would sometimes scroll all the way to the top even
though it shouldn't, because of a poorly chosen check in coordsChar.

The new check should no longer get false positives.
Aug 13, 2012
Marijn Haverbeke Remove function that no longer had any effect
Marijn Haverbeke Work around Webkit 'stuck scrollbar' bug
Closes #716
Marijn Haverbeke Change autofocus rules in fromTextArea
It now focuses the new editor only if the textarea argument
currently has focus.

Closes #714
Peter Kroon [less mode] Improve highlighting 47c8458
Marijn Haverbeke Suppress no-op calls to replaceRange from indentLine
Produces less noisy change objects when pressing enter.
Jan Keromnes Add Build Status to 6c05854
Marijn Haverbeke [vim keymap] IE7-proof a loop over a string ed2863d
Aug 15, 2012
Marijn Haverbeke Remove unused computedStyle utility function 56f6b37
Marijn Haverbeke Another stab at autofocus + fromTextArea behavior
Issue #721
Jan Keromnes Configurable cursor blink rate, default to 530ms
Suggested implementation for issue #722
Joost-Wim Boekesteijn Make documentation reflect peek()'s behaviour.
String.prototype.charAt returns '' (empty string) for characters outside the range of the string.
Marijn Haverbeke Make StringStream.peek return undefined when at eol
Makes its behavior match the documentation, and the behavior or .next().

Issue #724
Aug 16, 2012
Marijn Haverbeke Stop leaking window resize handlers dd6bbc6
Marijn Haverbeke Turn off the pseudo-scrollbar on OS X Lion
This is a temporary kludge. I hope we'll be able to find a better
solution. (This should bring back the flicker issue on Lion.)

Issue #727
Aug 17, 2012
Marijn Haverbeke Dont select the input textarea unless focused 35554d5
Page- Add a closeOnBackspace option to simpleHint. 81c018d
Page- Add a closeOnTokenChange option to simpleHint. 6e56a89
Marijn Haverbeke Amendment to commit c0ab870 f44ac12
Marijn Haverbeke Remove some obsolete logic
Now that the scroller div has its own vertical scrollbar, we no longer
need to explicitly update the scrollbar during updateDisplay.
Thomas Schmid Add Sieve mode c17f9f9
Aug 19, 2012
Ahmad Amireh Markdown mode: fixed issue with [bracket quoted words] that aren't ac…
…tually links being tokenized as links
Aug 20, 2012
Marijn Haverbeke Another stab at cleanly disabling the fake scrollbar on Lion 4a034c1
alexey-k Sequences like "};" not line-broken anymore
Was "};" => "}\n;" before, "};" => "};\n" now.
Aug 21, 2012
Marijn Haverbeke Fix failing test verticalMovementCommandsWrapping on Chrome 21 231af71
Marijn Haverbeke Ensure cursor doesn't end up outside of visible window
Closes #738
Marijn Haverbeke Fix problem with ghost scrollbar in self-resizing editor 37d924e
Marijn Haverbeke [css mode] Treat parenthesis as punctuation
Closes #737
Marijn Haverbeke Assign our global with window.CodeMirror = ...
Closes #736
Marijn Haverbeke Reflect repository rename in docs and project pages
(codemirror2 -> codemirror)
Marijn Haverbeke Update tester link to reflect right repository 9703015
Aug 23, 2012
Marijn Haverbeke Make the linter complain about byte-order marks in files 3d78790
Jan Keromnes remove byte order mark in xml-hint.js ef27ccc
Marijn Haverbeke Remove '2' from dev snapshot zip file name 65e02a7
Marijn Haverbeke Add Github android app to real-world uses 3d786d4
Marijn Haverbeke Don't force a width on IE7
It produces a bogus horizontal scrollbar there.
Marijn Haverbeke Mark release 2.33 805b5a4