mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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 #7195)
This commit is contained in:
@@ -2630,7 +2630,9 @@ do_ecmd(
|
||||
{
|
||||
if (flags & ECMD_ADDBUF)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user