Commits

Anonymous committed dd8069d

codeassist: fixed prefixing rope-code-assist with autoimport enabled

  • Participants
  • Parent commits 4d5e135

Comments (0)

Files changed (1)

File ropemacs/interface.py

         for name in names:
             common = 0
             for c1, c2 in zip(prefix, name):
-                if c1 == c2:
-                    common += 1
-                else:
+                if c1 != c2 or ' ' in (c1, c2):
                     break
+                common += 1
             prefix = prefix[:common]
         return prefix