         handlerStack.neverContinueBubbling =>
           if event.keyCode > 31
             keyChar = String.fromCharCode event.charCode
-            # Primarily for visual mode. If there's no match, we return to the original viewport.
-            window.scrollTo @scrollX, @scrollY if options.returnToViewport
             handleKeyCharForFindMode keyChar if keyChar
 
       keyup: (event) => @suppressEvent

  constructor: (options = {}) ->
    @historyIndex = -1
    @partialQuery = ""
    @scrollX = window.scrollX
    @scrollY = window.scrollY
    super
      name: "find"
      badge: "/"

  selection.addRange range

# Enters find mode.  Returns the new find-mode instance.
window.enterFindMode = (options = {}) ->
  # Save the selection, so performFindInPlace can restore it.
  findModeSaveSelection()
  findModeQuery = { rawQuery: "" }
