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:
Michael Ennen
2016-12-06 17:12:08 -07:00
parent 629e788b36
commit 0064e9738a
4 changed files with 46 additions and 16 deletions

View File

@@ -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()