( to_insert, text_after_cursor )
| 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: |
no test coverage detected