diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-19 00:39:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-19 00:39:50 +0200 |
commit | 281d422e71903c8b9e1f2c8bfe5972e3c3b1be1b (patch) | |
tree | 7c486adcd9c767e9d401b159c796df869f30c91e /src/nvim/buffer.c | |
parent | 572ecdfeed16c733ca35601ef2339ab38c530d73 (diff) | |
parent | 8c8961d9a28ad9c79dc8de09801d975b8a450257 (diff) | |
download | rneovim-281d422e71903c8b9e1f2c8bfe5972e3c3b1be1b.tar.gz rneovim-281d422e71903c8b9e1f2c8bfe5972e3c3b1be1b.tar.bz2 rneovim-281d422e71903c8b9e1f2c8bfe5972e3c3b1be1b.zip |
Merge #10368 from janlazo/vim-8.0.1164
vim-patch:8.0.{755,1146,1164}
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index cd31adbaff..34fe52c10e 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3366,7 +3366,6 @@ int build_stl_str_hl( char_u *usefmt = fmt; const int save_must_redraw = must_redraw; const int save_redr_type = curwin->w_redr_type; - const int save_highlight_shcnaged = need_highlight_changed; // When the format starts with "%!" then evaluate it as an expression and // use the result as the actual format string. @@ -4430,12 +4429,12 @@ int build_stl_str_hl( cur_tab_rec->def.func = NULL; } - // We do not want redrawing a stausline, ruler, title, etc. to trigger - // another redraw, it may cause an endless loop. This happens when a - // statusline changes a highlight group. - must_redraw = save_must_redraw; - curwin->w_redr_type = save_redr_type; - need_highlight_changed = save_highlight_shcnaged; + // When inside update_screen we do not want redrawing a stausline, ruler, + // title, etc. to trigger another redraw, it may cause an endless loop. + if (updating_screen) { + must_redraw = save_must_redraw; + curwin->w_redr_type = save_redr_type; + } return width; } |