]> arthur.barton.de Git - atom-ax-pipe.git/blobdiff - lib/pipe.coffee
Update ./lib/pipe.coffe to use current API
[atom-ax-pipe.git] / lib / pipe.coffee
index 97ada8a8b67092cfa294a493be4fdc635a32694f..c9de02787c397b6a6ee0879929876b8f35a425a3 100644 (file)
@@ -9,10 +9,11 @@ module.exports =
     atom.commands.add 'atom-workspace', "pipe:run", => @run()
 
   run: ->
-    editor = atom.workspace.getActiveEditor()
-    view = atom.workspaceView.getActiveView()
+    editor = atom.workspace.getActiveTextEditor()
     return if not editor?
 
+    view = atom.views.getView(atom.workspace)
+
     new CommandView history, (commandString) ->
       if not commandString
         view.focus()