Commits

Ali Gholami Rudi  committed 4df1801

autoimport: proposing imported names only with non-empty starting

  • Participants
  • Parent commits abd8020

Comments (0)

Files changed (1)

File ropemacs/interface.py

         names = [proposal.name for proposal in proposals]
         if self.autoimport is not None:
             starting = source[starting_offset:offset]
-            names.extend(x[0] + ' : ' + x[1]
-                         for x in self.autoimport.import_assist(starting))
+            if starting.strip():
+                names.extend(x[0] + ' : ' + x[1]
+                             for x in self.autoimport.import_assist(starting))
         return starting_offset, names
 
     def _check_autoimport(self):