diff options
author | Michael Reed <Pyrohh@users.noreply.github.com> | 2015-07-19 15:39:03 -0400 |
---|---|---|
committer | Michael Reed <Pyrohh@users.noreply.github.com> | 2015-07-19 15:39:03 -0400 |
commit | 259db27aefba280a9c154017b8e852c6d70abdfc (patch) | |
tree | 2e1a467ff7798a9e52f0851f4ae894cdb19d8a37 /src/nvim/normal.c | |
parent | fcb79ffc40b93d5e0d165e1d001d073c83b8617e (diff) | |
parent | 85b7ea9a8770c42bf2cadb1d3fa605b58d82d7cb (diff) | |
download | rneovim-259db27aefba280a9c154017b8e852c6d70abdfc.tar.gz rneovim-259db27aefba280a9c154017b8e852c6d70abdfc.tar.bz2 rneovim-259db27aefba280a9c154017b8e852c6d70abdfc.zip |
Merge pull request #2943 from Pyrohh/rm-posix
[RDY] Remove POSIX 'cpoptions'
Reviewed-by: Felipe Morales <hel.sheep@gmail.com>
Reviewed-by: Marco Hinz <mh.codebro@gmail.com>
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 7b445dcab6..a5eb54bb68 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -5735,22 +5735,10 @@ static void nv_optrans(cmdarg_T *cap) static char_u *str = (char_u *)"xXDCsSY&"; if (!checkclearopq(cap->oap)) { - /* In Vi "2D" doesn't delete the next line. Can't translate it - * either, because "2." should also not use the count. */ - if (cap->cmdchar == 'D' && vim_strchr(p_cpo, CPO_HASH) != NULL) { - cap->oap->start = curwin->w_cursor; - cap->oap->op_type = OP_DELETE; - set_op_var(OP_DELETE); - cap->count1 = 1; - nv_dollar(cap); - finish_op = true; - ResetRedobuff(); - AppendCharToRedobuff('D'); - } else { - if (cap->count0) - stuffnumReadbuff(cap->count0); - stuffReadbuff(ar[(int)(vim_strchr(str, cap->cmdchar) - str)]); + if (cap->count0) { + stuffnumReadbuff(cap->count0); } + stuffReadbuff(ar[(int)(vim_strchr(str, cap->cmdchar) - str)]); } cap->opcount = 0; } @@ -6548,9 +6536,6 @@ static void n_opencmd(cmdarg_T *cap) 0, 0)) { if (curwin->w_p_cole > 0 && oldline != curwin->w_cursor.lnum) update_single_line(curwin, oldline); - /* When '#' is in 'cpoptions' ignore the count. */ - if (vim_strchr(p_cpo, CPO_HASH) != NULL) - cap->count1 = 1; invoke_edit(cap, false, cap->cmdchar, true); } } |