diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-10-04 11:28:30 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-10-05 20:12:59 +0200 |
commit | 7746f641b89d1d80b2121980f83ae1f322c30e89 (patch) | |
tree | c416ea57cc643208ad7fa7384f5d82da06526125 /src/nvim/option.c | |
parent | 6ae144a92171cf9ae52bddddc3a081a4efaabe9f (diff) | |
download | rneovim-7746f641b89d1d80b2121980f83ae1f322c30e89.tar.gz rneovim-7746f641b89d1d80b2121980f83ae1f322c30e89.tar.bz2 rneovim-7746f641b89d1d80b2121980f83ae1f322c30e89.zip |
fix(options): no matter what is said, 'cmdheight' is tab-local (susy baka)
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 9d0ba6a478..4a93fddc1b 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -147,6 +147,13 @@ typedef enum { # include "option.c.generated.h" #endif +void set_init_tablocal(void) +{ + // susy baka: cmdheight calls itself OPT_GLOBAL but is really tablocal! + int ch_idx = findoption("cmdheight"); + p_ch = (long)options[ch_idx].def_val; +} + /// Initialize the options, first part. /// /// Called only once from main(), just after creating the first buffer. |