]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - atom/packages/ex-mode/lib/ex-state.coffee
Adds atom packages
[rbdr/dotfiles] / atom / packages / ex-mode / lib / ex-state.coffee
index b676535c13a2333a9e7dfb12769542cab5aeb2a9..7c0f37c342e061cf2cec32b23bb99bb53b4a236f 100644 (file)
@@ -34,6 +34,9 @@ class ExState
   onDidFailToExecute: (fn) ->
     @emitter.on('failed-to-execute', fn)
 
+  onDidProcessOpStack: (fn) ->
+    @emitter.on('processed-op-stack', fn)
+
   pushOperations: (operations) ->
     @opStack.push operations
 
@@ -55,5 +58,6 @@ class ExState
         else
           throw e
     @clearOpStack()
+    @emitter.emit('processed-op-stack')
 
 module.exports = ExState