1
0
forked from aniani/vim

patch 8.2.1904: still using default option values after using ":badd +1"

Problem:    Still using default option values after using ":badd +1".
Solution:   Find a window where options were set.  Don't set the window when
            using ":badd".
This commit is contained in:
Bram Moolenaar
2020-10-25 17:09:50 +01:00
parent 37e4e03c67
commit 89b693e562
5 changed files with 25 additions and 9 deletions

View File

@@ -2640,7 +2640,10 @@ do_ecmd(
if (tlnum <= 0)
tlnum = 1L;
}
(void)buflist_new(ffname, sfname, tlnum, BLN_LISTED);
// Add BLN_NOCURWIN to avoid a new wininfo items is assocated
// with the current window.
(void)buflist_new(ffname, sfname, tlnum,
BLN_LISTED | BLN_NOCURWIN);
goto theend;
}
buf = buflist_new(ffname, sfname, 0L,