From 04ceaf36bff77661c288c0d3ce8908d20199a298 Mon Sep 17 00:00:00 2001 From: Kangaroopower Date: Mon, 22 Dec 2014 21:46:16 -0800 Subject: [PATCH] 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 --- src/text-editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 29f50fd0f..599978cb8 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -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())