comparison src/structs.h @ 9885:4e8b05fa12c6 v7.4.2217

commit https://github.com/vim/vim/commit/4f416e41243ca151b95d39d81ce23d00b1484755 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 16 16:08:18 2016 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 16 Aug 2016 16:15:06 +0200
parents 4eea48b76d03
children ccb6461b82df
comparison
equal deleted inserted replaced
9884:f257a33a7418 9885:4e8b05fa12c6
2437 int attr; /* attributes to be used for a match */ 2437 int attr; /* attributes to be used for a match */
2438 int attr_cur; /* attributes currently active in win_line() */ 2438 int attr_cur; /* attributes currently active in win_line() */
2439 linenr_T first_lnum; /* first lnum to search for multi-line pat */ 2439 linenr_T first_lnum; /* first lnum to search for multi-line pat */
2440 colnr_T startcol; /* in win_line() points to char where HL starts */ 2440 colnr_T startcol; /* in win_line() points to char where HL starts */
2441 colnr_T endcol; /* in win_line() points to char where HL ends */ 2441 colnr_T endcol; /* in win_line() points to char where HL ends */
2442 int is_addpos; /* position specified directly by
2443 matchaddpos(). TRUE/FALSE */
2442 #ifdef FEAT_RELTIME 2444 #ifdef FEAT_RELTIME
2443 proftime_T tm; /* for a time limit */ 2445 proftime_T tm; /* for a time limit */
2444 #endif 2446 #endif
2445 } match_T; 2447 } match_T;
2446 2448