diff options
author | shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> | 2022-10-22 13:54:29 +0600 |
---|---|---|
committer | shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> | 2022-10-24 21:14:41 +0600 |
commit | a53998ae78902309c225b323e0b8d9f1f75fe147 (patch) | |
tree | 4c019f10ec043613512d9623fa7c68ecd2f28043 /src/nvim/options.lua | |
parent | 837190720310deca0231fc42aa3023957ff79a3a (diff) | |
download | rneovim-a53998ae78902309c225b323e0b8d9f1f75fe147.tar.gz rneovim-a53998ae78902309c225b323e0b8d9f1f75fe147.tar.bz2 rneovim-a53998ae78902309c225b323e0b8d9f1f75fe147.zip |
fix: setting tabline option not redrawing tabline
With #20374 tabline option is marked with 'statuslines' redraw flag.
But 'statuslines' doesn't redraw tabline. As a result, tabline doesn't
get redrawn when tabline option is set and statuslines get unnecessarily redrawn.
This patch fixes the issue by adding a new redraw flag P_RTABL to redraw
tabline.
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 8a883a09c3..ba483d3714 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -19,7 +19,7 @@ -- types: bool, number, string -- lists: (nil), comma, onecomma, flags, flagscomma -- scopes: global, buffer, window --- redraw options: statuslines, current_window, curent_window_only, +-- redraw options: statuslines, tabline, current_window, curent_window_only, -- current_buffer, all_windows, curswant -- defaults: {condition=#if condition, if_true=default, if_false=default} -- #if condition: @@ -2407,7 +2407,7 @@ return { short_desc=N_("custom format for the console tab pages line"), type='string', scope={'global'}, modelineexpr=true, - redraw={'statuslines'}, + redraw={'tabline'}, varname='p_tal', defaults={if_true=""} }, |