Add unit tests.
Return null from moveTillCharacter if nothing is found, so that if a deletion operation is active but no match was found, nothing gets deleted. Add a unit test for moveTillCharacter.
The method isn't present on all supported platforms, and these tests tested someting very obscure, and already failed on the v4 branch which representes the editor content differently. Issue #2152
Also fixed a bug in context matching.
All tests now check whether indentation from mode corresponds to the indentation in the test source. test.indentation is gone.
Add getHelpers and registerGlobalHelper, allow modes to specify arrays of helper names, support modeProps in mode specifications. Update foldcode and show-hint to make use of more powerful helper system by defining an `auto` helper that tries multiple helpers, and using that as default.
To make sure it isn't seeing comments that are actually strings. Issue #1975
Due to unexplainable hanging.
And add a test suite. Issue #2009
Stop doing this automatically for marks inclusive on both sides. Issue #1996
When the last line in an editor has no newline char at the end, yanking it line-wise should append one. So the last char will not be dropped when pasting it.