mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
EditSession reloads its grammar on the 'grammars-loaded' event
This commit is contained in:
@@ -61,6 +61,8 @@ class EditSession
|
||||
@subscribe @displayBuffer, "changed", (e) =>
|
||||
@trigger 'screen-lines-changed', e
|
||||
|
||||
@subscribe syntax, 'grammars-loaded', => @reloadGrammar()
|
||||
|
||||
getViewClass: ->
|
||||
require 'editor'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user