diff options
author | Michael Ennen <mike.ennen@gmail.com> | 2016-12-06 17:12:08 -0700 |
---|---|---|
committer | Michael Ennen <mike.ennen@gmail.com> | 2016-12-06 17:12:08 -0700 |
commit | 0064e9738aec725b9cf4b29f425b0da7ecc8fd46 (patch) | |
tree | d0b8cb81b4cd1b573abb301f99a9c626127b6cba /src/nvim/buffer_defs.h | |
parent | 629e788b3689698f8cd96a71b0d5421d7456e770 (diff) | |
download | rneovim-0064e9738aec725b9cf4b29f425b0da7ecc8fd46.tar.gz rneovim-0064e9738aec725b9cf4b29f425b0da7ecc8fd46.tar.bz2 rneovim-0064e9738aec725b9cf4b29f425b0da7ecc8fd46.zip |
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)
https://github.com/vim/vim/commit/4f416e41243ca151b95d39d81ce23d00b1484755
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 4f0de1451a..65ce07a172 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -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() |