Mercurial > vim
diff src/screen.c @ 11585:18373179040e v8.0.0675
patch 8.0.0675: 'colorcolumn' has a higher priority than 'hlsearch'
commit https://github.com/vim/vim/commit/774e5a9673260b1b8b88463669213a96637f72e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 25 18:03:37 2017 +0200
patch 8.0.0675: 'colorcolumn' has a higher priority than 'hlsearch'
Problem: 'colorcolumn' has a higher priority than 'hlsearch', it should be
the other way around. (Nazri Ramliy)
Solution: Change the priorities. (LemonBoy, closes #1794)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 25 Jun 2017 18:15:03 +0200 |
parents | 998d2cf59caa |
children | 24664144de4e |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -5502,7 +5502,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)