Mercurial > vim
comparison src/screen.c @ 14093:a9d94f10ecef v8.1.0064
patch 8.1.0064: typing CTRL-W in a prompt buffer shows mode "-- --"
commit https://github.com/vim/vim/commit/942b4541a2d8e8df8369ab70e112dbbbe0c7c0aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 17 16:23:34 2018 +0200
patch 8.1.0064: typing CTRL-W in a prompt buffer shows mode "-- --"
Problem: Typing CTRL-W in a prompt buffer shows mode "-- --".
Solution: Set restart_edit to 'A' and check for it.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jun 2018 16:30:06 +0200 |
parents | ae53a9274f50 |
children | 7cac4646c552 |
comparison
equal
deleted
inserted
replaced
14092:5e5daac87b5d | 14093:a9d94f10ecef |
---|---|
10261 int sub_attr; | 10261 int sub_attr; |
10262 #endif | 10262 #endif |
10263 | 10263 |
10264 do_mode = ((p_smd && msg_silent == 0) | 10264 do_mode = ((p_smd && msg_silent == 0) |
10265 && ((State & INSERT) | 10265 && ((State & INSERT) |
10266 || restart_edit | 10266 || restart_edit != NUL |
10267 || VIsual_active)); | 10267 || VIsual_active)); |
10268 if (do_mode || reg_recording != 0) | 10268 if (do_mode || reg_recording != 0) |
10269 { | 10269 { |
10270 /* | 10270 /* |
10271 * Don't show mode right now, when not redrawing or inside a mapping. | 10271 * Don't show mode right now, when not redrawing or inside a mapping. |
10368 if (p_ri) | 10368 if (p_ri) |
10369 MSG_PUTS_ATTR(_(" REVERSE"), attr); | 10369 MSG_PUTS_ATTR(_(" REVERSE"), attr); |
10370 #endif | 10370 #endif |
10371 MSG_PUTS_ATTR(_(" INSERT"), attr); | 10371 MSG_PUTS_ATTR(_(" INSERT"), attr); |
10372 } | 10372 } |
10373 else if (restart_edit == 'I') | 10373 else if (restart_edit == 'I' || restart_edit == 'A') |
10374 MSG_PUTS_ATTR(_(" (insert)"), attr); | 10374 MSG_PUTS_ATTR(_(" (insert)"), attr); |
10375 else if (restart_edit == 'R') | 10375 else if (restart_edit == 'R') |
10376 MSG_PUTS_ATTR(_(" (replace)"), attr); | 10376 MSG_PUTS_ATTR(_(" (replace)"), attr); |
10377 else if (restart_edit == 'V') | 10377 else if (restart_edit == 'V') |
10378 MSG_PUTS_ATTR(_(" (vreplace)"), attr); | 10378 MSG_PUTS_ATTR(_(" (vreplace)"), attr); |