From 7ac05d1a664e4d0d8405b1c4effbe217c3e0b50b Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Wed, 27 May 2015 20:06:32 -0300 Subject: [PATCH] See #372. Fix deprecation, call ::getActiveTextEditor instead Closes #366. --- src/beautifiers/uncrustify/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beautifiers/uncrustify/index.coffee b/src/beautifiers/uncrustify/index.coffee index afbe785..918e2f5 100644 --- a/src/beautifiers/uncrustify/index.coffee +++ b/src/beautifiers/uncrustify/index.coffee @@ -32,7 +32,7 @@ module.exports = class Uncrustify extends Beautifier resolve cPath else # Has custom config path - editor = atom.workspace.getActiveEditor() + editor = atom.workspace.getActiveTextEditor() if editor? basePath = path.dirname(editor.getPath()) # console.log(basePath);