Minor refactoring
This commit is contained in:
parent
3ed8d9883c
commit
a9ea9d648d
@ -129,10 +129,11 @@ def AdjustCandidateInsertionText( candidates ):
|
|||||||
return to_insert[ :-overlap_len ]
|
return to_insert[ :-overlap_len ]
|
||||||
return to_insert
|
return to_insert
|
||||||
|
|
||||||
new_candidates = []
|
|
||||||
text_after_cursor = vimsupport.TextAfterCursor()
|
text_after_cursor = vimsupport.TextAfterCursor()
|
||||||
if not text_after_cursor:
|
if not text_after_cursor:
|
||||||
return candidates
|
return candidates
|
||||||
|
|
||||||
|
new_candidates = []
|
||||||
for candidate in candidates:
|
for candidate in candidates:
|
||||||
if type( candidate ) is dict:
|
if type( candidate ) is dict:
|
||||||
new_candidate = candidate.copy()
|
new_candidate = candidate.copy()
|
||||||
|
Loading…
Reference in New Issue
Block a user