diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-21 15:11:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-21 15:11:42 +0200 |
commit | 2d5f385cee3668c44089edcb9d60b0b5d751ee5d (patch) | |
tree | 0e4cac228f7a1420c78d9ca55ceb1da01f7ea4fc /src/drawline.c | |
parent | 753bcf8c7d7cf7b9e1572a80cc513a67020814ac (diff) |
patch 8.2.2797: Search highlight disappears in the Visual areav8.2.2797
Problem: Search highlight disappears in the Visual area.
Solution: Combine the search attributes. (closes #8134)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drawline.c b/src/drawline.c index fcb996b4b9..13be022a93 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -1538,6 +1538,9 @@ win_line( if (area_attr != 0) { char_attr = hl_combine_attr(line_attr, area_attr); + if (!highlight_match) + // let search highlight show in Visual area if possible + char_attr = hl_combine_attr(search_attr, char_attr); # ifdef FEAT_SYN_HL char_attr = hl_combine_attr(syntax_attr, char_attr); # endif |