1
0
Эх сурвалжийг харах

Comment about matchaddpos rather than matchadd

This could be a good change for an interested new contributor.
Ben Jackson 5 жил өмнө
parent
commit
77419a2be2

+ 2 - 0
python/ycm/vimsupport.py

@@ -262,6 +262,8 @@ def GetDiagnosticMatchesInCurrentWindow():
 
 
 def AddDiagnosticMatch( match ):
+  # TODO: Use matchaddpos which is much faster given that we always are using a
+  # location rather than an actual pattern
   return GetIntValue( "matchadd('{}', '{}')".format( match.group,
                                                      match.pattern ) )