mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +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:
@@ -3896,6 +3896,10 @@ static void nv_gotofile(cmdarg_T *cap)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!check_can_set_curbuf_disabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
char *ptr = grab_file_name(cap->count1, &lnum);
|
||||
|
||||
if (ptr != NULL) {
|
||||
@@ -4232,7 +4236,8 @@ static void nv_brackets(cmdarg_T *cap)
|
||||
(cap->cmdchar == ']'
|
||||
? curwin->w_cursor.lnum + 1
|
||||
: 1),
|
||||
MAXLNUM);
|
||||
MAXLNUM,
|
||||
false);
|
||||
xfree(ptr);
|
||||
curwin->w_set_curswant = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user