Fix move to first/last character in line if in wrap mode. Fixes some other bugs on the way and add some simple unit tests.
This commit is contained in:
parent
40472b71fc
commit
28ea247f17
8 changed files with 171 additions and 51 deletions
|
|
@ -91,6 +91,7 @@ exports.launch = function(env) {
|
|||
|
||||
var container = document.getElementById("editor");
|
||||
env.editor = new Editor(new Renderer(container, theme));
|
||||
window.$editor = env.editor;
|
||||
|
||||
function onDocChange() {
|
||||
var doc = getDoc();
|
||||
|
|
@ -124,7 +125,7 @@ exports.launch = function(env) {
|
|||
docEl.onchange = onDocChange;
|
||||
|
||||
function getDoc() {
|
||||
return docs[docEl.value];
|
||||
return docs.plain//docs[docEl.value];
|
||||
}
|
||||
|
||||
var modeEl = document.getElementById("mode");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue