MCPcopy
hub / github.com/ycm-core/YouCompleteMe / NewCandidateInsertionText

Function NewCandidateInsertionText

python/ycm/base.py:107–111  ·  view source on GitHub ↗
( to_insert, text_after_cursor )

Source from the content-addressed store, hash-verified

105 """
106
107 def NewCandidateInsertionText( to_insert, text_after_cursor ):
108 overlap_len = OverlapLength( to_insert, text_after_cursor )
109 if overlap_len:
110 return to_insert[ :-overlap_len ]
111 return to_insert
112
113 text_after_cursor = vimsupport.TextAfterCursor()
114 if not text_after_cursor:

Callers 1

Calls 1

OverlapLengthFunction · 0.85

Tested by

no test coverage detected