 
     return unless expression
 
-
     doIt = () =>
-      unflash = @evalFlash(range)
+      if range?
+        unflash = @evalFlash(range)
 
       onSuccess = () ->
-        unflash('eval-success')
+        unflash?('eval-success')
 
       onError = (error) =>
         if error.type is 'SyntaxError'
-          unflash('eval-syntax-error')
+          unflash?('eval-syntax-error')
           if path
             # offset syntax error by position of selected text in file
             row = range.getRows()[0] + error.error.syntaxErrors.line

    else
      # 'someMethod'.openHelpFile
      # starts with lowercase has no punctuation, wrap in ''
      methody = /^([a-zA-Z0-9\_]*)$/
      match = expression.match(methody)
      if match
        base = "'#{expression}'"

            @openToSyntaxError(path, parseInt(row), parseInt(col))
        else
          # runtime error
          unflash?('eval-error')

      @activeRepl.eval(expression, false, path)
        .then(onSuccess, onError)
