diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-07-12 14:21:27 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-08-31 15:07:05 +0100 |
commit | 804c828e681ec3e55f19614d78c2b098b2672f86 (patch) | |
tree | 74d43e7c4f08cde3ffde49c97a0dab1199524fcc | |
parent | 9fdc4cdb64ee405c3d742b0397a7be6c963d09a0 (diff) | |
download | rneovim-804c828e681ec3e55f19614d78c2b098b2672f86.tar.gz rneovim-804c828e681ec3e55f19614d78c2b098b2672f86.tar.bz2 rneovim-804c828e681ec3e55f19614d78c2b098b2672f86.zip |
fix(optionstr.c): incorrect use of curbuf/curwin
-rw-r--r-- | src/nvim/optionstr.c | 4 |
1 files 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 |