diff options
Diffstat (limited to 'src/nvim/window.c')
| -rw-r--r-- | src/nvim/window.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/nvim/window.c b/src/nvim/window.c index e0d05e1d47..ddf50b47a7 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -2240,6 +2240,9 @@ static void leaving_window(win_T *const win)    // When leaving a prompt window stop Insert mode and perhaps restart    // it when entering that window again.    win->w_buffer->b_prompt_insert = restart_edit; +  if (restart_edit != NUL && mode_displayed) { +    clear_cmdline = true;  // unshow mode later +  }    restart_edit = NUL;    // When leaving the window (or closing the window) was done from a | 
