commit | b3414595c713ca161f082776f89417faddec7d2d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jun 17 17:48:32 2014 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jun 17 17:48:32 2014 +0200 |
tree | 5f03f600e04a2455ce84033c49db30b680d571c6 | |
parent | ec1561cac59006213dd5405d164a94dc7d002806 [diff] [blame] |
updated for version 7.4.330 Problem: Using a regexp pattern to highlight a specific position can be slow. Solution: Add matchaddpos() to highlight specific positions efficiently. (Alexey Radkov)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 04c9a61..083693b 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -11489,7 +11489,7 @@ c = *end; *end = NUL; - match_add(curwin, g, p + 1, 10, id); + match_add(curwin, g, p + 1, 10, id, NULL); vim_free(g); *end = c; }