aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-05 11:10:07 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-05 17:10:07 +0200
commit078202d6f8b4f7312e88790ea0af0b67bf300951 (patch)
treee4263472d6a444c9624b51965cb3d9dee6e7b255 /src/nvim/screen.c
parentd9d91bbfef883c72e71bbc966274ddd7157d0060 (diff)
downloadrneovim-078202d6f8b4f7312e88790ea0af0b67bf300951.tar.gz
rneovim-078202d6f8b4f7312e88790ea0af0b67bf300951.tar.bz2
rneovim-078202d6f8b4f7312e88790ea0af0b67bf300951.zip
vim-patch:8.0.0675: 'colorcolumn' has a higher priority than 'hlsearch' (#8483)
Problem: 'colorcolumn' has a higher priority than 'hlsearch', it should be the other way around. (Nazri Ramliy) Solution: Change the priorities. (LemonBoy, closes vim/vim#1794) https://github.com/vim/vim/commit/774e5a9673260b1b8b88463669213a96637f72e8
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 4299002084..b0bf3a7d5f 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -4061,7 +4061,8 @@ win_line (
* Also highlight the 'colorcolumn' if it is different than
* 'cursorcolumn' */
vcol_save_attr = -1;
- if (draw_state == WL_LINE && !lnum_in_visual_area) {
+ if (draw_state == WL_LINE && !lnum_in_visual_area
+ && search_attr == 0 && area_attr == 0) {
if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol
&& lnum != wp->w_cursor.lnum) {
vcol_save_attr = char_attr;