1
0
forked from aniani/vim

patch 7.4.1089

Problem:    Repeating CTRL-A doesn't work.
Solution:   Call prep_redo_cmd(). (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2016-01-12 22:20:58 +01:00
parent 7ae4fbca55
commit ef2b5036b3
3 changed files with 10 additions and 0 deletions

View File

@@ -4227,6 +4227,7 @@ nv_addsub(cap)
{
if (!VIsual_active && cap->oap->op_type == OP_NOP)
{
prep_redo_cmd(cap);
cap->oap->op_type = cap->cmdchar == Ctrl_A ? OP_NR_ADD : OP_NR_SUB;
op_addsub(cap->oap, cap->count1, cap->arg);
cap->oap->op_type = OP_NOP;