diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-15 20:52:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-15 20:52:26 +0200 |
commit | ad5e5631c5dc93a50bbe637be254c5e9968848ea (patch) | |
tree | 1e45c995ab1ef7772891db27cccf65dc26232a2a /src/drawline.c | |
parent | c8f12c9856df58c760fe54d81b2ec5ed4dcaffd6 (diff) | |
download | vim-git-ad5e5631c5dc93a50bbe637be254c5e9968848ea.tar.gz |
patch 8.2.1689: 'colorcolumn' doesn't show in indentv8.2.1689
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)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 2b72de648..82738f13c 100644 --- 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 |