See #372. Fix deprecation, call ::getActiveTextEditor instead

Closes #366.
This commit is contained in:
Glavin Wiechert 2015-05-27 20:06:32 -03:00
parent ecd1012458
commit 7ac05d1a66
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module.exports = class Uncrustify extends Beautifier
resolve cPath resolve cPath
else else
# Has custom config path # Has custom config path
editor = atom.workspace.getActiveEditor() editor = atom.workspace.getActiveTextEditor()
if editor? if editor?
basePath = path.dirname(editor.getPath()) basePath = path.dirname(editor.getPath())
# console.log(basePath); # console.log(basePath);