aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2025-01-08 17:56:21 +0000
committerGitHub <noreply@github.com>2025-01-08 17:56:21 +0000
commitc4b658fed8d96a4c4098ce59b01b228ef0bda62e (patch)
tree50f10b101e425a04c646d5970eed88a4318f2069 /src/nvim/ex_docmd.c
parent17b46d01e29443452ae8b607017f8f5c585d3f0a (diff)
parent6257270040bc5c61a489f7fb9d4102223c36cf89 (diff)
downloadrneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.tar.gz
rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.tar.bz2
rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.zip
Merge pull request #31112 from famiu/refactor/options/set_option_for
refactor(options): set option value for non-current context directly
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 6f9f0f07c9..ceb3a074b4 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -5294,7 +5294,7 @@ static char *findfunc_find_file(char *findarg, size_t findarg_len, int count)
/// Returns NULL on success and an error message on failure.
const char *did_set_findfunc(optset_T *args)
{
- buf_T *buf = (buf_T *)args->os_buf;
+ buf_T *buf = args->os_ctx.buf;
int retval;
if (args->os_flags & OPT_LOCAL) {