forked from VimPlug/jedi
@@ -393,9 +393,9 @@ class BaseDefinition(object):
|
||||
path = self._name.get_root_context().py__file__()
|
||||
lines = parser_cache[self._evaluator.grammar._hashed][path].lines
|
||||
|
||||
line_nr = self._name.start_pos[0]
|
||||
start_line_nr = max(line_nr - before, 0)
|
||||
return ''.join(lines[start_line_nr:line_nr + after + 1])
|
||||
index = self._name.start_pos[0] - 1
|
||||
start_index = max(index - before, 0)
|
||||
return ''.join(lines[start_index:index + after + 1])
|
||||
|
||||
|
||||
class Completion(BaseDefinition):
|
||||
|
||||
Reference in New Issue
Block a user