     @direction = direction
 
     URI = marker.getProperties().URI
-    pos = marker.getStartBufferPosition()
+    point = marker.getStartBufferPosition()
 
     if activeEditor.getURI() is URI
       # Jump within active editor.
-      activeEditor.setCursorBufferPosition pos
-      return
+      activeEditor.setCursorBufferPosition point
 
-    atom.workspace.open(URI, searchAllPanes: true).done (editor) =>
-      # Jump to another another file.
-      editor.setCursorBufferPosition pos
+    else
+      atom.workspace.open(URI, searchAllPanes: true).done (editor) =>
+        # Jump to another another file.
+        editor.setCursorBufferPosition point


  activate: (state) ->
    @subscriptions = new CompositeDisposable
    @history = new CursorHistory atom.config.get('cursor-history.max')
    @cursorMoveTracking = true

    @rowDeltaToRemember = atom.config.get 'cursor-history.rowDeltaToRemember'
    @subscriptions.add atom.config.onDidChange 'cursor-history.rowDeltaToRemember', ({newValue}) =>

{CompositeDisposable, TextEditor} = require 'atom'
History = require './history'
path = require 'path'

module.exports =
