From 804c828e681ec3e55f19614d78c2b098b2672f86 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Wed, 12 Jul 2023 14:21:27 +0100 Subject: [PATCH] fix(optionstr.c): incorrect use of curbuf/curwin --- src/nvim/optionstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 18065f05d4..9e5226a46f 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -2086,8 +2086,8 @@ const char *did_set_string_option(buf_T *buf, win_T *win, int opt_idx, char **va .os_restore_chartab = false, .os_errbuf = errbuf, .os_errbuflen = errbuflen, - .os_win = curwin, - .os_buf = curbuf, + .os_win = win, + .os_buf = buf, }; // Disallow changing some options from secure mode