diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index fc004032c4..b4f8c1d826 100644 --- a/src/window.c +++ b/src/window.c @@ -2259,7 +2259,7 @@ leaving_window(win_T *win) // When leaving the window (or closing the window) was done from a // callback we need to break out of the Insert mode loop and restart Insert // mode when entering the window again. - if (State & INSERT) + if (State & MODE_INSERT) { stop_insert_mode = TRUE; if (win->w_buffer->b_prompt_insert == NUL) @@ -2281,7 +2281,7 @@ entering_window(win_T *win) // When entering the prompt window restart Insert mode if we were in Insert // mode when we left it and not already in Insert mode. - if ((State & INSERT) == 0) + if ((State & MODE_INSERT) == 0) restart_edit = win->w_buffer->b_prompt_insert; } #endif |