diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-16 16:08:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-16 16:08:18 +0200 |
commit | 4f416e41243ca151b95d39d81ce23d00b1484755 (patch) | |
tree | 2e560a4c537b04744dff89b978a4842963f52a68 /src/structs.h | |
parent | 22177f0c0826e3b2411a5e9d050b50200877ecd3 (diff) | |
download | vim-git-4f416e41243ca151b95d39d81ce23d00b1484755.tar.gz |
patch 7.4.2217v7.4.2217
Problem: When using matchaddpos() a character after the end of the line can
be highlighted.
Solution: Only highlight existing characters. (Hirohito Higashi)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 2a64471b1..4488bf860 100644 --- a/src/structs.h +++ b/src/structs.h @@ -2439,6 +2439,8 @@ typedef struct 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 */ + int is_addpos; /* position specified directly by + matchaddpos(). TRUE/FALSE */ #ifdef FEAT_RELTIME proftime_T tm; /* for a time limit */ #endif |