diff options
author | Michael Ennen <mike.ennen@gmail.com> | 2016-12-06 22:56:14 -0700 |
---|---|---|
committer | Michael Ennen <mike.ennen@gmail.com> | 2016-12-07 00:37:29 -0700 |
commit | 63c46c11062f5c720644d9bb419f42b0a6d837c8 (patch) | |
tree | 69627c4db95b1da1b1ff43747b5fcfd169acdc3c /src/nvim/buffer_defs.h | |
parent | 0e99d291699dc5548f891340a4abb1541041b854 (diff) | |
download | rneovim-63c46c11062f5c720644d9bb419f42b0a6d837c8.tar.gz rneovim-63c46c11062f5c720644d9bb419f42b0a6d837c8.tar.bz2 rneovim-63c46c11062f5c720644d9bb419f42b0a6d837c8.zip |
vim-patch:8.0.0040
Problem: Whole line highlighting with matchaddpos() does not work.
Solution: Check for zero length. (Hirohito Higashi)
https://github.com/vim/vim/commit/8507747600bddfd6a68aed057840856bf5548e61
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 1de74e089e..2f0e8ad974 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -877,13 +877,13 @@ struct frame_S { * match functions there is a different pattern for each window. */ typedef struct { - regmmatch_T rm; /* points to the regexp program; contains last found - match (may continue in next line) */ - buf_T *buf; /* the buffer to search for a match */ - linenr_T lnum; /* the line to search for a match */ - int attr; /* attributes to be used for a match */ - int attr_cur; /* attributes currently active in win_line() */ - linenr_T first_lnum; /* first lnum to search for multi-line pat */ + regmmatch_T rm; // points to the regexp program; contains last found + // match (may continue in next line) + buf_T *buf; // the buffer to search for a match + linenr_T lnum; // the line to search for a match + int attr; // attributes to be used for a match + 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 bool is_addpos; // position specified directly by matchaddpos() |