From 68f3577b879465d98002efb43903ca367e2f91fb Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 19 May 2014 11:10:03 -0700 Subject: [PATCH] Faster drawing of red diagnostic underlines The new version of the regex executes faster. Fixes #968. --- python/ycm/vimsupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 48ec4a3e..374e5d61 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -161,7 +161,7 @@ def AddDiagnosticSyntaxMatch( line_num, "matchadd('{0}', '\%{1}l\%{2}c')".format( group, line_num, column_num ) ) else: return GetIntValue( - "matchadd('{0}', '\%{1}l\%{2}c\_.*\%{3}l\%{4}c')".format( + "matchadd('{0}', '\%{1}l\%{2}c\_.\\{{-}}\%{3}l\%{4}c')".format( group, line_num, column_num, line_end_num, column_end_num ) )