mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
vim-patch:8.2.1902: default option values changed with :badd for existing buffer
Problem: Default option values are changed when using :badd for an existing
buffer.
Solution: When calling buflist_new() pass a zero line number. (closes vim/vim#7195)
e974fa7b2b
This commit is contained in:
@@ -2324,7 +2324,9 @@ int do_ecmd(
|
||||
buf = buflist_findnr(fnum);
|
||||
} else {
|
||||
if (flags & (ECMD_ADDBUF | ECMD_ALTBUF)) {
|
||||
linenr_T tlnum = 1L;
|
||||
// Default the line number to zero to avoid that a wininfo item
|
||||
// is added for the current window.
|
||||
linenr_T tlnum = 0;
|
||||
|
||||
if (command != NULL) {
|
||||
tlnum = atol((char *)command);
|
||||
|
Reference in New Issue
Block a user