 
     for operation in operations
       # Motions in visual mode perform their selections.
-      if @mode is 'visual' and operation instanceof motions.Motion
+      if @mode is 'visual' and operation instanceof Motions.Motion
         operation.execute = operation.select
 
       @opStack.push(operation) if operation
 
       # If we've received an operator in visual mode, mark the current
       # selection as the motion to operate on.
-      if @mode is 'visual' and operation instanceof operators.Operator
-        @opStack.push(new motions.CurrentSelection(@))
+      if @mode is 'visual' and operation instanceof Operators.Operator
+        @opStack.push(new Motions.CurrentSelection(@))
 
       @processOpStack()
 

        @topOperation().compose(poppedOperation)
        @processOpStack()
      catch e
        (e instanceof operators.OperatorError) and @resetCommandMode() or throw e
    else
      @history.unshift(poppedOperation) if poppedOperation.isRecordable()
      poppedOperation.execute()

_ = require 'underscore-plus'
{$} = require 'atom'

Operators = require './operators'
Prefixes = require './prefixes'
Commands = require './commands'
Motions = require './motions'
TextObjects = require './text-objects'
Utils = require './utils'
Panes = require './panes'
Scroll = require './scroll'

module.exports =
class VimState
