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);