From a9ea9d648d66d67910cd0241cbfc3b2f867a0b6b Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 5 Jan 2014 12:18:46 -0800 Subject: [PATCH] Minor refactoring --- python/ycm/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ycm/base.py b/python/ycm/base.py index 0c7702b7..b31fd11f 100644 --- a/python/ycm/base.py +++ b/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()