mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
dots without any other actual relevant code shouldn't just complete, fixes #46
This commit is contained in:
@@ -108,6 +108,8 @@ class Script(object):
|
||||
|
||||
debug.speed('complete start')
|
||||
path = self.module.get_path_until_cursor()
|
||||
if re.search('^\.|\.\.$', path):
|
||||
return []
|
||||
path, dot, like = self._get_completion_parts(path)
|
||||
|
||||
try:
|
||||
|
||||
@@ -9,6 +9,16 @@ int()
|
||||
int(str)
|
||||
|
||||
|
||||
# -----------------
|
||||
# should not complete
|
||||
# -----------------
|
||||
#? []
|
||||
.
|
||||
#? []
|
||||
str..
|
||||
#? []
|
||||
a(0):.
|
||||
|
||||
# -----------------
|
||||
# if/else/elif
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user