EditSession reloads its grammar on the 'grammars-loaded' event

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-03-07 14:25:14 -08:00
parent 39fabaa344
commit 17f4d6f064
2 changed files with 15 additions and 0 deletions

View File

@@ -61,6 +61,8 @@ class EditSession
@subscribe @displayBuffer, "changed", (e) =>
@trigger 'screen-lines-changed', e
@subscribe syntax, 'grammars-loaded', => @reloadGrammar()
getViewClass: ->
require 'editor'