use the global line wrapping option in moz-export popup

This commit is contained in:
tophf 2018-07-22 20:08:13 +03:00
parent 662b4f8e49
commit 4283cc53a7

View File

@ -597,7 +597,7 @@ function showCodeMirrorPopup(title, html, options) {
let cm = popup.codebox = CodeMirror($('.contents', popup), Object.assign({
mode: 'css',
lineNumbers: true,
lineWrapping: true,
lineWrapping: prefs.get('editor.lineWrapping'),
foldGutter: true,
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter', 'CodeMirror-lint-markers'],
matchBrackets: true,