Actually return the new grammar, as per the API

Previously, the emitter didn't return the new type of grammar, just an undefined to signal when the grammar changed. This patch makes it so that the type of grammar is returned when the texteditor's grammar changes, as per what the API says it does
This commit is contained in:
Kangaroopower
2014-12-22 21:46:16 -08:00
parent 08d183dff1
commit 04ceaf36bf

View File

@@ -2838,7 +2838,7 @@ class TextEditor extends Model
@subscribeToScopedConfigSettings()
@unfoldAll()
@emit 'grammar-changed'
@emitter.emit 'did-change-grammar'
@emitter.emit 'did-change-grammar', @getGrammar()
handleMarkerCreated: (marker) =>
if marker.matchesProperties(@getSelectionMarkerAttributes())