Mercurial > vim
diff src/normal.c @ 29179:432e1535ef2c v8.2.5109
patch 8.2.5109: mode not updated after CTRL-O CTRL-C in Insert mode
Commit: https://github.com/vim/vim/commit/7a1d32809bb5c1527314000983e75125d79192e0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 16 13:04:45 2022 +0100
patch 8.2.5109: mode not updated after CTRL-O CTRL-C in Insert mode
Problem: Mode not updated after CTRL-O CTRL-C in Insert mode.
Solution: Set redraw_mode and use it. (closes https://github.com/vim/vim/issues/10581)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Jun 2022 14:15:03 +0200 |
parents | be6c32395444 |
children | fba9e366ced4 |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -6788,6 +6788,9 @@ nv_esc(cmdarg_T *cap) msg(_("Type :qa and press <Enter> to exit Vim")); } + if (restart_edit != 0) + redraw_mode = TRUE; // remove "-- (insert) --" + // Don't reset "restart_edit" when 'insertmode' is set, it won't be // set again below when halfway a mapping. if (!p_im)