From 39549159fef535ef2d44c0ca62137bac16f469ee Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 22 Jul 2019 06:25:07 -0400 Subject: vim-patch:8.1.0706: introduce :redrawtabline #10570 Problem: Tabline is not always redrawn when something that is used in 'tabline' changes. Solution: Add ":redrawtabline" so that a plugin can at least cause the redraw when needed. https://github.com/vim/vim/commit/e12bab3144af8943937bd0ff4bc57f04e53037b3 --- runtime/doc/options.txt | 2 ++ runtime/doc/various.txt | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 84e08ae04b..f8a6ee4a48 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6027,6 +6027,8 @@ A jump table for the options with a short description can be found at |Q_op|. the text to be displayed. Use "%1T" for the first label, "%2T" for the second one, etc. Use "%X" items for closing labels. + When changing something that is used in 'tabline' that does not + trigger it to be updated, use |:redrawtabline|. This option cannot be set in a modeline when 'modelineexpr' is off. Keep in mind that only one of the tab pages is the current one, others diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index bfb00f74c4..0429341b6f 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -31,6 +31,11 @@ CTRL-L Clears and redraws the screen. The redraw may happen Useful if 'statusline' includes an item that doesn't cause automatic updating. + *:redrawt* *:redrawtabline* +:redrawt[abline] Redraw the tabline. Useful to update the tabline when + 'tabline' includes an item that doesn't trigger + automatic updating. + *N* When entering a number: Remove the last digit. Note: if you like to use for this, add this -- cgit