mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
vim-patch:7.4.2217
Problem: When using matchaddpos() a character after the end of the line can
be highlighted.
Solution: Only highlight existing characters. (Hirohito Higashi)
4f416e4124
This commit is contained in:
@@ -885,8 +885,9 @@ typedef struct {
|
||||
int attr_cur; /* attributes currently active in win_line() */
|
||||
linenr_T first_lnum; /* first lnum to search for multi-line pat */
|
||||
colnr_T startcol; /* in win_line() points to char where HL starts */
|
||||
colnr_T endcol; /* in win_line() points to char where HL ends */
|
||||
proftime_T tm; /* for a time limit */
|
||||
colnr_T endcol; // in win_line() points to char where HL ends
|
||||
bool is_addpos; // position specified directly by matchaddpos()
|
||||
proftime_T tm; // for a time limit
|
||||
} match_T;
|
||||
|
||||
/// number of positions supported by matchaddpos()
|
||||
|
Reference in New Issue
Block a user