Browse Source

Comment about matchaddpos rather than matchadd

This could be a good change for an interested new contributor.
Ben Jackson 5 years ago
parent
commit
77419a2be2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      python/ycm/vimsupport.py

+ 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 ) )