comparison 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
comparison
equal deleted inserted replaced
29178:5c6a9452357f 29179:432e1535ef2c
6786 msg(_("Type :qa! and press <Enter> to abandon all changes and exit Vim")); 6786 msg(_("Type :qa! and press <Enter> to abandon all changes and exit Vim"));
6787 else 6787 else
6788 msg(_("Type :qa and press <Enter> to exit Vim")); 6788 msg(_("Type :qa and press <Enter> to exit Vim"));
6789 } 6789 }
6790 6790
6791 if (restart_edit != 0)
6792 redraw_mode = TRUE; // remove "-- (insert) --"
6793
6791 // Don't reset "restart_edit" when 'insertmode' is set, it won't be 6794 // Don't reset "restart_edit" when 'insertmode' is set, it won't be
6792 // set again below when halfway a mapping. 6795 // set again below when halfway a mapping.
6793 if (!p_im) 6796 if (!p_im)
6794 restart_edit = 0; 6797 restart_edit = 0;
6795 #ifdef FEAT_CMDWIN 6798 #ifdef FEAT_CMDWIN