comparison src/ex_docmd.c @ 15396:325e4a8ba1b6 v8.1.0706

patch 8.1.0706: tabline is not always redrawn commit https://github.com/vim/vim/commit/e12bab3144af8943937bd0ff4bc57f04e53037b3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 8 22:02:56 2019 +0100 patch 8.1.0706: tabline is not always redrawn 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Jan 2019 22:15:05 +0100
parents ad065b8123e8
children 1c6a708a5fee
comparison
equal deleted inserted replaced
15395:989d5000e18e 15396:325e4a8ba1b6
294 #endif 294 #endif
295 static void ex_redo(exarg_T *eap); 295 static void ex_redo(exarg_T *eap);
296 static void ex_later(exarg_T *eap); 296 static void ex_later(exarg_T *eap);
297 static void ex_redir(exarg_T *eap); 297 static void ex_redir(exarg_T *eap);
298 static void ex_redrawstatus(exarg_T *eap); 298 static void ex_redrawstatus(exarg_T *eap);
299 static void ex_redrawtabline(exarg_T *eap);
299 static void close_redir(void); 300 static void close_redir(void);
300 static void ex_mkrc(exarg_T *eap); 301 static void ex_mkrc(exarg_T *eap);
301 static void ex_mark(exarg_T *eap); 302 static void ex_mark(exarg_T *eap);
302 #ifdef FEAT_USR_CMDS 303 #ifdef FEAT_USR_CMDS
303 static char_u *uc_fun_cmd(void); 304 static char_u *uc_fun_cmd(void);
9916 RedrawingDisabled = r; 9917 RedrawingDisabled = r;
9917 p_lz = p; 9918 p_lz = p;
9918 out_flush(); 9919 out_flush();
9919 } 9920 }
9920 9921
9922 /*
9923 * ":redrawtabline": force redraw of the tabline
9924 */
9925 static void
9926 ex_redrawtabline(exarg_T *eap UNUSED)
9927 {
9928 int r = RedrawingDisabled;
9929 int p = p_lz;
9930
9931 RedrawingDisabled = 0;
9932 p_lz = FALSE;
9933
9934 draw_tabline();
9935
9936 RedrawingDisabled = r;
9937 p_lz = p;
9938 out_flush();
9939 }
9940
9921 static void 9941 static void
9922 close_redir(void) 9942 close_redir(void)
9923 { 9943 {
9924 if (redir_fd != NULL) 9944 if (redir_fd != NULL)
9925 { 9945 {