diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-09 12:32:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 12:32:25 +0800 |
commit | 19c9572d3626cde8503ee9061fa334b73f257b03 (patch) | |
tree | 9ac8478d974b5abd3a3a662348a4c7f58cc645db /src/nvim/winfloat.c | |
parent | 822313e42b5b8d51ea0b3f1f97c47026f2c7e2e2 (diff) | |
download | rneovim-19c9572d3626cde8503ee9061fa334b73f257b03.tar.gz rneovim-19c9572d3626cde8503ee9061fa334b73f257b03.tar.bz2 rneovim-19c9572d3626cde8503ee9061fa334b73f257b03.zip |
Revert "refactor(options): set option value for non-current context directly" (#31924)
Reverts #31112
Diffstat (limited to 'src/nvim/winfloat.c')
-rw-r--r-- | src/nvim/winfloat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/winfloat.c b/src/nvim/winfloat.c index 78f3551087..3e791e2beb 100644 --- a/src/nvim/winfloat.c +++ b/src/nvim/winfloat.c @@ -411,8 +411,8 @@ win_T *win_float_create(bool enter, bool new_buf) return handle_error_and_cleanup(wp, &err); } buf->b_p_bl = false; // unlist - set_option_direct_for(kOptBufhidden, STATIC_CSTR_AS_OPTVAL("wipe"), - option_ctx_from(kOptScopeBuf, buf), OPT_LOCAL, 0); + set_option_direct_for(kOptBufhidden, STATIC_CSTR_AS_OPTVAL("wipe"), OPT_LOCAL, 0, + kOptScopeBuf, buf); win_set_buf(wp, buf, &err); if (ERROR_SET(&err)) { return handle_error_and_cleanup(wp, &err); |