From 18e5a3ad4fb755d723fd7d5611a3664ccc24c1bc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 11 Mar 2014 16:08:20 +0100 Subject: [PATCH] document a goto part of the API --- jedi/evaluate/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jedi/evaluate/__init__.py b/jedi/evaluate/__init__.py index d441e503..49e56ab1 100644 --- a/jedi/evaluate/__init__.py +++ b/jedi/evaluate/__init__.py @@ -343,8 +343,10 @@ class Evaluator(object): scope = stmt.get_parent_until(pr.IsScope) pos = stmt.start_pos - call_path, search = call_path[:-1], call_path[-1] + # Need this to return the params if you're actually doing a goto on the + # param. pos = pos[0], pos[1] + 1 + call_path, search = call_path[:-1], call_path[-1] if call_path: scopes = self.eval_call_path(iter(call_path), scope, pos)