diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-25 21:07:49 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-07-04 10:05:34 -0400 |
commit | edaff441de1015068d7cee64c222f3c65fcd7dc6 (patch) | |
tree | f086b4aba319e5b225efeeccd4f73185b34fab7b /src/nvim/eval.c | |
parent | 43a2e5fe4b4e107a53ccd5edbf2f3c0a97d79f6e (diff) | |
download | rneovim-edaff441de1015068d7cee64c222f3c65fcd7dc6.tar.gz rneovim-edaff441de1015068d7cee64c222f3c65fcd7dc6.tar.bz2 rneovim-edaff441de1015068d7cee64c222f3c65fcd7dc6.zip |
vim-patch:8.1.1372: when evaluating 'statusline' the current window is unknown
Problem: When evaluating 'statusline' the current window is unknown.
(Daniel Hahler)
Solution: Set "g:actual_curwin" for %{} items. Set "g:statusline_winid"
when evaluationg %!. (closes vim/vim#4406, closes vim/vim#3299)
https://github.com/vim/vim/commit/1c6fd1e100fd0457375642ec50d483bcc0f61bb2
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b7e827e86b..27c2ed1ea5 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2818,7 +2818,7 @@ static int do_unlet_var(lval_T *const lp, char_u *const name_end, int forceit) /// @param[in] fonceit If true, do not complain if variable doesn’t exist. /// /// @return OK if it existed, FAIL otherwise. -int do_unlet(const char *const name, const size_t name_len, const int forceit) +int do_unlet(const char *const name, const size_t name_len, const bool forceit) FUNC_ATTR_NONNULL_ALL { const char *varname; |