From 8c17995bee385389bdc0c4c52577d60e32b749e3 Mon Sep 17 00:00:00 2001 From: micbou Date: Sat, 12 Sep 2015 17:08:58 +0200 Subject: [PATCH] Correct FixIt chunks sorting --- python/ycm/vimsupport.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index a0baa75f..d53eae21 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -466,9 +466,8 @@ def ReplaceChunksList( chunks, vim_buffer = None ): # We need to track the difference in length, but ensuring we apply fixes # in ascending order of insertion point. chunks.sort( key = lambda chunk: ( - str( chunk[ 'range' ][ 'start' ][ 'line_num' ] ) - + ',' - + str( chunk[ 'range' ][ 'start' ][ 'column_num' ] ) + chunk[ 'range' ][ 'start' ][ 'line_num' ], + chunk[ 'range' ][ 'start' ][ 'column_num' ] ) ) # Remember the line number we're processing. Negative line number means we