Restore source-editor commands controller for scratchpad & styleeditor menus

https://github.com/MoonchildProductions/moebius/pull/290
This commit is contained in:
janekptacijarabaci 2018-03-01 13:45:40 +01:00 • committed by Roy Tam
commit 28ab3c0e0d
5 changed files with 114 additions and 0 deletions

View file

@ -1744,6 +1744,9 @@ var Scratchpad = {
this.editor.focus();
this.editor.setCursor({ line: lines.length, ch: lines.pop().length });
// Add the commands controller for the source-editor.
this.editor.insertCommandsController();
if (state)
this.dirty = !state.saved;