diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-11 12:05:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 12:05:01 +0800 |
commit | 3814750d3789b5c5690e8fa68066bd864a4f0a8e (patch) | |
tree | 8958b54539e3b4df3b8e6eebf6f11c7fbecc1662 /runtime/lua/vim | |
parent | a09ddd7ce55037edc9747a682810fba6a26bc201 (diff) | |
parent | 3b3511c4d9f1855d4240da0d844ce7875176c607 (diff) | |
download | rneovim-3814750d3789b5c5690e8fa68066bd864a4f0a8e.tar.gz rneovim-3814750d3789b5c5690e8fa68066bd864a4f0a8e.tar.bz2 rneovim-3814750d3789b5c5690e8fa68066bd864a4f0a8e.zip |
Merge pull request #27738 from ColinKennedy/vim-9.1.0147
vim-patch:9.1.{0147,0149,0150,0152,0156},58f1e5c0893a: 'winfixbuf'
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 757720d8fb..e9ac2fe08f 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -6746,6 +6746,8 @@ vim.bo.swf = vim.bo.swapfile --- "split" when both are present. --- uselast If included, jump to the previously used window when --- jumping to errors with `quickfix` commands. +--- If a window has 'winfixbuf' enabled, 'switchbuf' is currently not +--- applied to the split window. --- --- @type string vim.o.switchbuf = "uselast" @@ -7874,6 +7876,18 @@ vim.o.wi = vim.o.window vim.go.window = vim.o.window vim.go.wi = vim.go.window +--- If enabled, the buffer and any window that displays it are paired. +--- For example, attempting to change the buffer with `:edit` will fail. +--- Other commands which change a window's buffer such as `:cnext` will +--- also skip any window with 'winfixbuf' enabled. However if a command +--- has an "!" option, a window can be forced to switch buffers. +--- +--- @type boolean +vim.o.winfixbuf = false +vim.o.wfb = vim.o.winfixbuf +vim.wo.winfixbuf = vim.o.winfixbuf +vim.wo.wfb = vim.wo.winfixbuf + --- Keep the window height when windows are opened or closed and --- 'equalalways' is set. Also for `CTRL-W_=`. Set by default for the --- `preview-window` and `quickfix-window`. |