Mercurial > vim
diff src/drawline.c @ 22280:47ebfc274e3f v8.2.1689
patch 8.2.1689: 'colorcolumn' doesn't show in indent
Commit: https://github.com/vim/vim/commit/ad5e5631c5dc93a50bbe637be254c5e9968848ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 15 20:52:26 2020 +0200
patch 8.2.1689: 'colorcolumn' doesn't show in indent
Problem: 'colorcolumn' doesn't show in indent.
Solution: Also draw the column when draw_state is WL_BRI or WL_SBR.
(Alexey Demin, closes #6948, closes #6619)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Sep 2020 21:00:03 +0200 |
parents | 125051dff419 |
children | b27601c0d289 |
line wrap: on
line diff
--- a/src/drawline.c +++ b/src/drawline.c @@ -2775,8 +2775,12 @@ win_line( // highlight the cursor position itself. // Also highlight the 'colorcolumn' if it is different than // 'cursorcolumn' + // Also highlight the 'colorcolumn' if 'breakindent' and/or 'showbreak' + // options are set vcol_save_attr = -1; - if (draw_state == WL_LINE && !lnum_in_visual_area + if ((draw_state == WL_LINE || + draw_state == WL_BRI || + draw_state == WL_SBR) && !lnum_in_visual_area && search_attr == 0 && area_attr == 0) { if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol