comparison src/edit.c @ 16368:a3b5cbd2effe v8.1.1189

patch 8.1.1189: mode is not cleared when leaving Insert mode commit https://github.com/vim/vim/commit/abc7c7fc5a098374f5543a237e6c9dd918848b34 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 20 15:10:13 2019 +0200 patch 8.1.1189: mode is not cleared when leaving Insert mode Problem: Mode is not cleared when leaving Insert mode. Solution: Clear the mode when got_int is set. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4270)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Apr 2019 15:15:05 +0200
parents cd5c83115ec6
children 3d6b282e2d6e
comparison
equal deleted inserted replaced
16367:74435217b66d 16368:a3b5cbd2effe
4562 * When recording or for CTRL-O, need to display the new mode. 4562 * When recording or for CTRL-O, need to display the new mode.
4563 * Otherwise remove the mode message. 4563 * Otherwise remove the mode message.
4564 */ 4564 */
4565 if (reg_recording != 0 || restart_edit != NUL) 4565 if (reg_recording != 0 || restart_edit != NUL)
4566 showmode(); 4566 showmode();
4567 else if (p_smd && !skip_showmode()) 4567 else if (p_smd && (got_int || !skip_showmode()))
4568 msg(""); 4568 msg("");
4569 4569
4570 return TRUE; /* exit Insert mode */ 4570 return TRUE; /* exit Insert mode */
4571 } 4571 }
4572 4572