X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..f2dfb1a5a17c8c94598d6ea26587923cd217f00e:/atom/packages/ex-mode/lib/ex-state.coffee?ds=sidebyside diff --git a/atom/packages/ex-mode/lib/ex-state.coffee b/atom/packages/ex-mode/lib/ex-state.coffee index b676535..7c0f37c 100644 --- a/atom/packages/ex-mode/lib/ex-state.coffee +++ b/atom/packages/ex-mode/lib/ex-state.coffee @@ -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