diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer_defs.h | 1 | ||||
-rw-r--r-- | src/nvim/drawline.c | 2 | ||||
-rw-r--r-- | src/nvim/screen.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index e2c93f481d..6072e42263 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1178,6 +1178,7 @@ struct window_S { int msgsep; int eob; int lastline; + int colorcol; } w_p_fcs_chars; // "w_topline", "w_leftcol" and "w_skipcol" specify the offsets for diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index 8fc1a4b029..18ab1e4a4b 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -2502,6 +2502,8 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange, col_attr = cuc_attr; } else if (draw_color_col && VCOL_HLC == *color_cols) { col_attr = mc_attr; + c = wp->w_p_fcs_chars.colorcol; + schar_from_char(linebuf_char[off], c); } col_attr = hl_combine_attr(col_attr, line_attr); diff --git a/src/nvim/screen.c b/src/nvim/screen.c index da34cced31..8efe334122 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -882,6 +882,7 @@ char *set_chars_option(win_T *wp, char **varp, bool apply) { &wp->w_p_fcs_chars.msgsep, "msgsep", ' ' }, { &wp->w_p_fcs_chars.eob, "eob", '~' }, { &wp->w_p_fcs_chars.lastline, "lastline", '@' }, + { &wp->w_p_fcs_chars.colorcol, "colorcol", ' ' }, }; struct chars_tab lcs_tab[] = { |