diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-03-14 23:58:47 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-03-23 14:01:49 +0100 |
commit | d407a48665d8f8e1e42eb1060ea245d979419605 (patch) | |
tree | e9e69777347e92618603f3d0d8bc54f81486a663 /src/nvim/screen.c | |
parent | ce3bc12e25f19d29c74e53a8a7f92079b1ccfcbf (diff) | |
download | rneovim-d407a48665d8f8e1e42eb1060ea245d979419605.tar.gz rneovim-d407a48665d8f8e1e42eb1060ea245d979419605.tar.bz2 rneovim-d407a48665d8f8e1e42eb1060ea245d979419605.zip |
getchar: implement <Cmd> key to invoke command in any mode
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index e624acaed5..22de08041a 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -6748,16 +6748,20 @@ int showmode(void) if (p_ri) MSG_PUTS_ATTR(_(" REVERSE"), attr); MSG_PUTS_ATTR(_(" INSERT"), attr); - } else if (restart_edit == 'I') + } else if (restart_edit == 'I' || restart_edit == 'i' + || restart_edit == 'a') { MSG_PUTS_ATTR(_(" (insert)"), attr); - else if (restart_edit == 'R') + } else if (restart_edit == 'R') { MSG_PUTS_ATTR(_(" (replace)"), attr); - else if (restart_edit == 'V') + } else if (restart_edit == 'V') { MSG_PUTS_ATTR(_(" (vreplace)"), attr); - if (p_hkmap) + } + if (p_hkmap) { MSG_PUTS_ATTR(_(" Hebrew"), attr); - if (p_fkmap) + } + if (p_fkmap) { MSG_PUTS_ATTR(farsi_text_5, attr); + } if (State & LANGMAP) { if (curwin->w_p_arab) { MSG_PUTS_ATTR(_(" Arabic"), attr); |