mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 10:55:40 +00:00
vim-patch: 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.) https://code.google.com/p/vim/source/detail?r=f9fa2e506b9f07549cd91074835c5c553db7b3a7
This commit is contained in:
@@ -8859,7 +8859,7 @@ static void ex_match(exarg_T *eap)
|
||||
|
||||
c = *end;
|
||||
*end = NUL;
|
||||
match_add(curwin, g, p + 1, 10, id);
|
||||
match_add(curwin, g, p + 1, 10, id, NULL);
|
||||
free(g);
|
||||
*end = c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user