summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-25 17:09:50 +0100
committerBram Moolenaar <Bram@vim.org>2020-10-25 17:09:50 +0100
commit89b693e5627715cde080c3580c7b641c9bf0c06a (patch)
treeea55eb7287428a2c3e6246c9a12c14d2306e7ec5 /src/ex_cmds.c
parent37e4e03c67dacfc4a065e95492ffc4c7f490b44b (diff)
patch 8.2.1904: still using default option values after using ":badd +1"v8.2.1904
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".
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index a9be36a0c9..8ddf238d34 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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,