vim-patch:76f1eed: runtime(doc): clarify how setbufvar() handles window options (#41408)

related: vim/vim#21089
closes:  vim/vim#21104

76f1eed3a5

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
This commit is contained in:
zeertzjq
2026-08-21 09:25:40 +08:00
committed by GitHub
parent 3733a31cd8
commit 12c3e59e6a
3 changed files with 15 additions and 6 deletions

View File

@@ -8414,8 +8414,11 @@ function vim.fn.setbufline(buf, lnum, text) end
---
--- Set option or local variable {varname} (string, without "b:")
--- in buffer {buf} to {val}. Also works for a global or
--- window-local option (not variable). When targeting
--- a window-local option, the global option is unchanged.
--- window-local option (not variable). A window-local option is
--- set in a window of the current tabpage that displays {buf},
--- and the global value is unchanged. When no window in the
--- current tabpage displays {buf} the option is not set and no
--- error is given; use |setwinvar()| or |win_execute()| for that.
---
--- For the use of {buf}, see |bufname()| above.
---