eric7/JediInterface/JediClient.py

branch
eric7
changeset 8606
dd9bf9841c50
parent 8593
1d66b6af60ed
child 8609
fd6b68a0a2df
--- a/eric7/JediInterface/JediClient.py	Tue Sep 14 19:18:33 2021 +0200
+++ b/eric7/JediInterface/JediClient.py	Tue Sep 14 19:30:12 2021 +0200
@@ -341,6 +341,15 @@
                                  assignment.line),
                         'Column': assignment.column,
                     }
+                    
+                    if (
+                        gotoDefinition["ModulePath"] == filename and
+                        gotoDefinition["Line"] == line
+                    ):
+                        # user called for the definition itself
+                        # => send the references instead
+                        self.__getReferences(params)
+                        return
                 break
         except SuppressedException as err:
             errorDict = self.__handleError(err)

eric ide

mercurial