diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-12-24 22:43:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 22:43:27 +0100 |
commit | 8c8cc35926f265bf4f048b83fd130bef3932851e (patch) | |
tree | c9ef81f318eace216546c0a6eabd6df5c71847d4 /src/nvim/option.c | |
parent | 88ae03bcdb8992fd91a3efdb61dbd7e2aa395eff (diff) | |
parent | 7add3ef996db3fd6ec8d03d2b8d879c58934b6e5 (diff) | |
download | rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.tar.gz rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.tar.bz2 rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.zip |
Merge pull request #13595 from teto/fix-filler
de curwinify some functions
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index bac289a959..f41c0761cc 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -7159,20 +7159,20 @@ dict_T *get_winbuf_options(const int bufopt) /// Return the effective 'scrolloff' value for the current window, using the /// global value when appropriate. -long get_scrolloff_value(void) +long get_scrolloff_value(win_T *wp) { // Disallow scrolloff in terminal-mode. #11915 if (State & TERM_FOCUS) { return 0; } - return curwin->w_p_so < 0 ? p_so : curwin->w_p_so; + return wp->w_p_so < 0 ? p_so : wp->w_p_so; } /// Return the effective 'sidescrolloff' value for the current window, using the /// global value when appropriate. -long get_sidescrolloff_value(void) +long get_sidescrolloff_value(win_T *wp) { - return curwin->w_p_siso < 0 ? p_siso : curwin->w_p_siso; + return wp->w_p_siso < 0 ? p_siso : wp->w_p_siso; } Dictionary get_vimoption(String name, Error *err) |