   #
   # Returns nothing.
   processOperations: ->
-    unless @operationsQueue.length > 0
-      return
-
-    unless @tailOperation().isComplete()
-      if @isNormalMode() and @tailOperation().isOperator?()
+    return unless @operationsQueue.length
+
+    unless @getTailOperation().isComplete()
+      if @isNormalMode() and @getTailOperation().isOperator?()
         @activateOperatorPendingMode()
       return
 
     operation = @operationsQueue.pop()
     if @operationsQueue.length
       try
-        @tailOperation().compose(operation)
+        @getTailOperation().compose(operation)
         @processOperations()
       catch e
         if (e instanceof Operators.OperatorError) or (e instanceof Motions.MotionError)

  #
  # Returns nothing.
  resetNormalMode: ->
    @clearOperations()
    @editor.clearSelections()
    @activateNormalMode()



        # if we have started an operation that responds to canComposeWith check if it can compose
        # with the operation we're going to push onto the stack
        if (tailOperation = @getTailOperation())? and tailOperation.canComposeWith? and not tailOperation.canComposeWith(operation)
          @resetNormalMode()
          @emitter.emit('failed-to-compose')
          break
