]> arthur.barton.de Git - atom-ax-pipe.git/commitdiff
Merge branches 'add-gitignore', 'dont-use-transactions' and 'workspace-addBottomPanel... tmp
authorAlexander Barton <alex@barton.de>
Thu, 25 Jun 2015 16:01:05 +0000 (18:01 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 25 Jun 2015 16:01:05 +0000 (18:01 +0200)
* add-gitignore:
  Add .gitignore file

* dont-use-transactions:
  Don't use editor.{begin|commit}Transaction

* workspace-addBottomPanel:
  Use "atom.workspace.addBottomPanel"

lib/command-view.coffee
lib/pipe.coffee

index 0b9e865b82e7b775d5948f5ef3bfed0b54dff338..042a048eeb10712021ce5a01a9f93236e744660b 100644 (file)
@@ -52,5 +52,5 @@ class CommandView extends View
           if historyPos >= history.length
             cur = @commandLine.getText()
 
-    atom.workspaceView.append(this)
+    atom.workspace.addBottomPanel(item: this)
     @commandLine.focus()
index 97ada8a8b67092cfa294a493be4fdc635a32694f..7c97563e4eb1e2028090ad4a35a7b6e7fa1547ad 100644 (file)
@@ -28,12 +28,10 @@ module.exports =
 
       ranges = editor.getSelectedBufferRanges()
       wg = new WaitGroup ->
-        editor.commitTransaction()
         view.focus()
 
       wg.add(ranges.length)
 
-      editor.beginTransaction()
       for range, i in ranges
         marker = editor.markBufferRange range, properties
         processRange marker, editor, commandString, wg