diff options
author | luukvbaal <31730729+luukvbaal@users.noreply.github.com> | 2022-11-08 01:41:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 08:41:49 +0800 |
commit | d187c00faf4feb76bdc544b87bea71f217d05957 (patch) | |
tree | 95dfb67c15f79dc4c2758895ac46c24dc5fceeb2 | |
parent | 59ff4691f67fc1ddd3d1b7240a2f2eb095e58281 (diff) | |
download | rneovim-d187c00faf4feb76bdc544b87bea71f217d05957.tar.gz rneovim-d187c00faf4feb76bdc544b87bea71f217d05957.tar.bz2 rneovim-d187c00faf4feb76bdc544b87bea71f217d05957.zip |
refactor: remove stray emsg check after #20992 (#20996)
-rw-r--r-- | src/nvim/statusline.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nvim/statusline.c b/src/nvim/statusline.c index 2c3f7e8375..039fe5d586 100644 --- a/src/nvim/statusline.c +++ b/src/nvim/statusline.c @@ -172,19 +172,7 @@ void win_redr_winbar(win_T *wp) if (wp->w_winbar_height == 0 || !redrawing()) { // Do nothing. } else if (*p_wbr != NUL || *wp->w_p_wbr != NUL) { - int saved_did_emsg = did_emsg; - - did_emsg = false; win_redr_custom(wp, true, false); - if (did_emsg) { - // When there is an error disable the winbar, otherwise the - // display is messed up with errors and a redraw triggers the problem - // again and again. - set_string_option_direct("winbar", -1, "", - OPT_FREE | (*wp->w_p_stl != NUL - ? OPT_LOCAL : OPT_GLOBAL), SID_ERROR); - } - did_emsg |= saved_did_emsg; } entered = false; } |