Alphabetize the CodeMirror options in EditScreen

Change-Id: Id97aaad7d577bb7abb90eb09471b9da0780db55e
This commit is contained in:
Michael Zhou
2016-04-09 01:45:51 -04:00
parent 309f8835f3
commit b9ce1c69b3

View File

@@ -421,21 +421,21 @@ public class EditScreen extends Screen {
}
}
cm = CodeMirror.create(editor, Configuration.create()
.set("value", content)
.set("readOnly", false)
.set("autoCloseBrackets", prefs.autoCloseBrackets())
.set("cursorBlinkRate", prefs.cursorBlinkRate())
.set("cursorHeight", 0.85)
.set("keyMap", prefs.keyMapType().name().toLowerCase())
.set("lineNumbers", prefs.hideLineNumbers())
.set("tabSize", prefs.tabSize())
.set("lineWrapping", false)
.set("matchBrackets", prefs.matchBrackets())
.set("autoCloseBrackets", prefs.autoCloseBrackets())
.set("mode", mode != null ? mode.mode() : null)
.set("readOnly", false)
.set("scrollbarStyle", "overlay")
.set("styleSelectedText", true)
.set("showTrailingSpace", prefs.showWhitespaceErrors())
.set("keyMap", prefs.keyMapType().name().toLowerCase())
.set("styleSelectedText", true)
.set("tabSize", prefs.tabSize())
.set("theme", prefs.theme().name().toLowerCase())
.set("mode", mode != null ? mode.mode() : null));
.set("value", content));
CodeMirror.addCommand("save", new CommandRunner() {
@Override