diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2022-08-21 12:32:25 -0600 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2022-08-30 23:18:13 -0600 |
commit | 877894e98c2abb4a482661c2243ad4b80a5cc242 (patch) | |
tree | e12a5919d4c800630ca6c986d46f0f55ba415d83 | |
parent | d7703a1f769e0fcfdea4d88d68b744911637e377 (diff) | |
download | rneovim-877894e98c2abb4a482661c2243ad4b80a5cc242.tar.gz rneovim-877894e98c2abb4a482661c2243ad4b80a5cc242.tar.bz2 rneovim-877894e98c2abb4a482661c2243ad4b80a5cc242.zip |
feat(colorcolchar): rename colorcol in fillchars to colorc
Rename the colorcol option in fillchars to the more terse colorc.
-rw-r--r-- | runtime/doc/options.txt | 8 | ||||
-rw-r--r-- | src/nvim/buffer_defs.h | 2 | ||||
-rw-r--r-- | src/nvim/drawline.c | 2 | ||||
-rw-r--r-- | src/nvim/screen.c | 2 | ||||
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index d41f1cf1cd..73ab36ba0e 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1351,10 +1351,10 @@ A jump table for the options with a short description can be found at |Q_op|. local to window 'colorcolumn' is a comma-separated list of screen columns that are highlighted with ColorColumn |hl-ColorColumn| and drawn using the - "colorcol" option from 'fillchars'. Useful to align - text. Will make screen redrawing slower. - The screen column can be an absolute number, or a number preceded with - '+' or '-', which is added to or subtracted from 'textwidth'. > + "colorc" option from 'fillchars'. Useful to align text. Will make + screen redrawing slower. The screen column can be an absolute number, + or a number preceded with '+' or '-', which is added to or subtracted + from 'textwidth'. > :set cc=+1 " highlight column after 'textwidth' :set cc=+1,+2,+3 " highlight three columns after 'textwidth' diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index fbf0cb5ea9..854fd79586 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1219,7 +1219,7 @@ struct window_S { int diff; int msgsep; int eob; - int colorcol; + int colorc; } w_p_fcs_chars; /* diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index 5862f66d72..3280f4be88 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -2344,7 +2344,7 @@ 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; + c = wp->w_p_fcs_chars.colorc; schar_from_char(linebuf_char[off], c); } diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 88aecfad28..d0c4fd56da 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -1328,7 +1328,7 @@ char *set_chars_option(win_T *wp, char **varp, bool apply) { &wp->w_p_fcs_chars.diff, "diff", '-' }, { &wp->w_p_fcs_chars.msgsep, "msgsep", ' ' }, { &wp->w_p_fcs_chars.eob, "eob", '~' }, - { &wp->w_p_fcs_chars.colorcol, "colorcol", ' ' }, + { &wp->w_p_fcs_chars.colorc, "colorc", ' ' }, }; struct chars_tab lcs_tab[] = { diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index becc38f0f2..c94a904bf1 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -856,7 +856,7 @@ describe('CursorLine and CursorLineNr highlights', function() | ]]) - command('set fillchars=colorcol:|') + command('set fillchars=colorc:|') command('set colorcolumn=3') feed('i <esc>') screen:expect([[ |