diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2019-02-10 14:55:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-10 14:55:12 +0100 |
| commit | b3ce0019a78ee85d44513344ce52d9da43077231 (patch) | |
| tree | 476f20c32019ad9d4f4059031f405f90266c08c2 /src/nvim/option.c | |
| parent | 3ff1228f785705a46a0bd24fb5dc2bf76b6dad68 (diff) | |
| parent | 51fc54325c55eb3cefafec627d73cc19c220d7ed (diff) | |
| download | rneovim-b3ce0019a78ee85d44513344ce52d9da43077231.tar.gz rneovim-b3ce0019a78ee85d44513344ce52d9da43077231.tar.bz2 rneovim-b3ce0019a78ee85d44513344ce52d9da43077231.zip | |
Merge pull request #7466 from bfredl/ext_messages
ui: implement ext_messages to externalize all messages in msg area
Diffstat (limited to 'src/nvim/option.c')
| -rw-r--r-- | src/nvim/option.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 5517768194..fc1fab834e 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -4168,7 +4168,8 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, errmsg = e_positive; } } else if (pp == &p_ch) { - if (value < 1) { + int minval = ui_has(kUIMessages) ? 0 : 1; + if (value < minval) { errmsg = e_positive; } } else if (pp == &p_tm) { @@ -4276,6 +4277,9 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, p_window = Rows - 1; } } else if (pp == &p_ch) { + if (ui_has(kUIMessages)) { + p_ch = 0; + } if (p_ch > Rows - min_rows() + 1) { p_ch = Rows - min_rows() + 1; } |