diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-21 15:16:48 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-26 11:57:52 +0100 |
commit | e7bbd35c812d338918d1c23692c70b403205fb30 (patch) | |
tree | 21dcf24c9e1c759fd9cf984c76ec40a51b94dbfc /src/nvim/normal.c | |
parent | 300eca3d301e407adadc017e71502d20a4b207e8 (diff) | |
download | rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.tar.gz rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.tar.bz2 rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.zip |
terminal: 'scrollback'
Closes #2637
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index e79939ab10..a51de5fe3c 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -7420,22 +7420,20 @@ static void nv_esc(cmdarg_T *cap) restart_edit = 'a'; } -/* - * Handle "A", "a", "I", "i" and <Insert> commands. - */ +/// Handle "A", "a", "I", "i" and <Insert> commands. static void nv_edit(cmdarg_T *cap) { - /* <Insert> is equal to "i" */ - if (cap->cmdchar == K_INS || cap->cmdchar == K_KINS) + // <Insert> is equal to "i" + if (cap->cmdchar == K_INS || cap->cmdchar == K_KINS) { cap->cmdchar = 'i'; + } - /* in Visual mode "A" and "I" are an operator */ - if (VIsual_active && (cap->cmdchar == 'A' || cap->cmdchar == 'I')) + // in Visual mode "A" and "I" are an operator + if (VIsual_active && (cap->cmdchar == 'A' || cap->cmdchar == 'I')) { v_visop(cap); - - /* in Visual mode and after an operator "a" and "i" are for text objects */ - else if ((cap->cmdchar == 'a' || cap->cmdchar == 'i') - && (cap->oap->op_type != OP_NOP || VIsual_active)) { + // in Visual mode and after an operator "a" and "i" are for text objects + } else if ((cap->cmdchar == 'a' || cap->cmdchar == 'i') + && (cap->oap->op_type != OP_NOP || VIsual_active)) { nv_object(cap); } else if (!curbuf->b_p_ma && !p_im && !curbuf->terminal) { // Only give this error when 'insertmode' is off. |