diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 8 | ||||
-rw-r--r-- | src/nvim/options.lua | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 882289c8b8..a7ee0ef28b 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -4102,11 +4102,7 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, errmsg = e_winwidth; } } else if (pp == &p_mco) { - if (value > MAX_MCO) { - errmsg = e_invarg; - } else if (value < 0) { - errmsg = e_positive; - } + value = MAX_MCO; } else if (pp == &p_titlelen) { if (value < 0) { errmsg = e_positive; @@ -4268,8 +4264,6 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, if (pp == &curbuf->b_p_sw || curbuf->b_p_sw == 0) { parse_cino(curbuf); } - } else if (pp == &p_mco) { - screenclear(); // will re-allocate the screen } else if (pp == &curbuf->b_p_iminsert) { showmode(); // Show/unshow value of 'keymap' in status lines. diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 47c9f5aa78..30ddb977bb 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1493,9 +1493,8 @@ return { full_name='maxcombine', abbreviation='mco', type='number', scope={'global'}, vi_def=true, - redraw={'curswant'}, varname='p_mco', - defaults={if_true={vi=2}} + defaults={if_true={vi=6}} }, { full_name='maxfuncdepth', abbreviation='mfd', |