浏览代码

Comment about matchaddpos rather than matchadd

This could be a good change for an interested new contributor.
Ben Jackson 5 年之前
父节点
当前提交
77419a2be2
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 ) )