diff options
author | Michael Reed <m.reed@mykolab.com> | 2015-07-03 03:10:34 -0400 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-07-19 15:14:22 -0400 |
commit | 96c27692b8e58a48e094cf5747dd51b26db75d39 (patch) | |
tree | 84909de927fe4aa11aa9feb8f9d48d59aae75def /src | |
parent | fcb79ffc40b93d5e0d165e1d001d073c83b8617e (diff) | |
download | rneovim-96c27692b8e58a48e094cf5747dd51b26db75d39.tar.gz rneovim-96c27692b8e58a48e094cf5747dd51b26db75d39.tar.bz2 rneovim-96c27692b8e58a48e094cf5747dd51b26db75d39.zip |
Remove POSIX 'cpoptions': '#'
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/normal.c | 21 | ||||
-rw-r--r-- | src/nvim/option_defs.h | 3 |
2 files changed, 4 insertions, 20 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); } } diff --git a/src/nvim/option_defs.h b/src/nvim/option_defs.h index d1fe91f49c..2afcc3dfa0 100644 --- a/src/nvim/option_defs.h +++ b/src/nvim/option_defs.h @@ -129,7 +129,6 @@ #define CPO_SPECI '<' /* don't recognize <> in mappings */ #define CPO_REGAPPEND '>' /* insert NL when appending to a register */ /* POSIX flags */ -#define CPO_HASH '#' /* "D", "o" and "O" do not use a count */ #define CPO_PARA '{' /* "{" is also a paragraph boundary */ #define CPO_TSIZE '|' /* $LINES and $COLUMNS overrule term size */ #define CPO_PRESERVE '&' /* keep swap file after :preserve */ @@ -142,7 +141,7 @@ #define CPO_VIM "aABceFs" #define CPO_VI "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>;" #define CPO_ALL \ - "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>#{|&/\\.;" + "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>{|&/\\.;" /* characters for p_ww option: */ #define WW_ALL "bshl<>[],~" |