Skip to content

Commit

Permalink
Don't line wrap ><>
Browse files Browse the repository at this point in the history
Since it's a 2D lang where columns are is quite important.
  • Loading branch information
JRaspass committed Nov 1, 2020
1 parent a87ed57 commit 013706b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/js/hole.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ onload = () => {
autofocus: true,
indentUnit: 1,
lineNumbers: true,
lineWrapping: true,
smartIndent: false,
vimMode,
});
Expand Down Expand Up @@ -89,6 +88,7 @@ onload = () => {
const autoSaveCode = localStorage.getItem(getAutoSaveKey(lang, solution)) || '';
const code = getSolutionCode(lang, solution) || autoSaveCode;

cm.setOption('lineWrapping', lang != 'fish');
cm.setOption('matchBrackets', lang != 'brainfuck' && lang != 'j');
cm.setOption('mode', {name: 'text/x-' + lang, startOpen: true});
cm.setValue(code);
Expand Down

0 comments on commit 013706b

Please sign in to comment.