Commits

Anonymous committed e7cc39d

Not setting mark when cannot determine the definition location

  • Participants
  • Parent commits 5167a0d

Comments (0)

Files changed (1)

File ropemacs/__init__.py

         resource, offset = self._get_location()
         definition = codeassist.get_definition_location(
             self.project, lisp.buffer_string(), offset, resource)
-        lisp.push_mark()
-        self._goto_location(definition)
+        if tuple(definition) != (None, None):
+            lisp.push_mark()
+            self._goto_location(definition)
 
     @interactive
     def show_doc(self):