mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
vim-patch:9.1.0147: Cannot keep a buffer focused in a window
Problem: Cannot keep a buffer focused in a window
(Amit Levy)
Solution: Add the 'winfixbuf' window-local option
(Colin Kennedy)
fixes: vim/vim#6445
closes: vim/vim#13903
2157035637
N/A patch:
vim-patch:58f1e5c0893a
This commit is contained in:
@@ -8406,6 +8406,8 @@ return {
|
||||
"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.
|
||||
]=],
|
||||
expand_cb = 'expand_set_switchbuf',
|
||||
full_name = 'switchbuf',
|
||||
@@ -9816,6 +9818,23 @@ return {
|
||||
type = 'number',
|
||||
varname = 'p_window',
|
||||
},
|
||||
{
|
||||
abbreviation = 'wfb',
|
||||
defaults = { if_true = false },
|
||||
desc = [=[
|
||||
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.
|
||||
]=],
|
||||
full_name = 'winfixbuf',
|
||||
pv_name = 'p_wfb',
|
||||
redraw = { 'current_window' },
|
||||
scope = { 'window' },
|
||||
short_desc = N_('pin a window to a specific buffer'),
|
||||
type = 'boolean',
|
||||
},
|
||||
{
|
||||
abbreviation = 'wfh',
|
||||
defaults = { if_true = false },
|
||||
|
Reference in New Issue
Block a user