Parcourir la source

Minor refactoring

Strahinja Val Markovic il y a 11 ans
Parent
commit
a9ea9d648d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      python/ycm/base.py

+ 2 - 1
python/ycm/base.py

@@ -129,10 +129,11 @@ def AdjustCandidateInsertionText( candidates ):
       return to_insert[ :-overlap_len ]
     return to_insert
 
-  new_candidates = []
   text_after_cursor = vimsupport.TextAfterCursor()
   if not text_after_cursor:
     return candidates
+
+  new_candidates = []
   for candidate in candidates:
     if type( candidate ) is dict:
       new_candidate = candidate.copy()