Skip to content

Commit 08227e3

Browse files
committed
Coerce SourceEditor.getWrap() into a boolean
1 parent 80aa48a commit 08227e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/source-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ window.onload = function() {
157157
config.readOnly = "nocursor";
158158
config.lineNumbers = true;
159159
config.autofocus = false;
160-
config.lineWrapping = SourceEditor.getWrap();
160+
config.lineWrapping = !!SourceEditor.getWrap();
161161
config.dragDrop = false;
162162
var editor = CodeMirror(document.body, config);
163163

0 commit comments

Comments
 (0)