Skip to content

Commit

Permalink
Merge pull request atom#18340 from atom/b3-deprecations-should-work
Browse files Browse the repository at this point in the history
maintainGrammar -> maintainLanguageMode
  • Loading branch information
Max Brunsfeld authored Oct 26, 2018
2 parents 834ced2 + afe17b0 commit 5761a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text-editor-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class TextEditorRegistry {
// Returns a {Disposable} that can be used to stop updating the editor's
// grammar.
maintainGrammar (editor) {
atom.grammars.maintainGrammar(editor.getBuffer())
atom.grammars.maintainLanguageMode(editor.getBuffer())
}

// Deprecated: Force a {TextEditor} to use a different grammar than the
Expand Down

0 comments on commit 5761a99

Please sign in to comment.