mirror of
https://github.com/neovim/neovim.git
synced 2026-08-27 09:31:47 +00:00
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:
7
runtime/lua/vim/_meta/vimfn.gen.lua
generated
7
runtime/lua/vim/_meta/vimfn.gen.lua
generated
@@ -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.
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user