Commit 72182750 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

wrap sticky error

parent d43e3d07
......@@ -184,6 +184,7 @@ function editor (elt, ace) {
wrap.checked = cur_wrap;
aceeditor.setOption("wrap", cur_wrap);
wrap.addEventListener("change", function () {
cur_wrap = this.checked;
aceeditor.setOption("wrap", this.checked);
localStorage.setItem("makeserver_editor_wrap", this.checked ? "true" : "");
});
......@@ -387,7 +388,7 @@ function editor (elt, ace) {
aceeditor.setSession(session.acesession);
// editor.setOption("showLineNumbers", false);
aceeditor.setHighlightActiveLine(false);
session.acesession.setUseWrapMode(true);
session.acesession.setUseWrapMode(cur_wrap);
sessionsByHref[href.nofrag] = session;
if (done) {
window.setTimeout(function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment