Mercurial > vim
comparison src/ex_cmds.c @ 22711:92f221ad267c v8.2.1904
patch 8.2.1904: still using default option values after using ":badd +1"
Commit: https://github.com/vim/vim/commit/89b693e5627715cde080c3580c7b641c9bf0c06a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 25 17:09:50 2020 +0100
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Oct 2020 17:15:03 +0100 |
parents | 9ff187b1652e |
children | 3e4981de5636 |
comparison
equal
deleted
inserted
replaced
22710:d54b1d74bd6c | 22711:92f221ad267c |
---|---|
2638 { | 2638 { |
2639 tlnum = atol((char *)command); | 2639 tlnum = atol((char *)command); |
2640 if (tlnum <= 0) | 2640 if (tlnum <= 0) |
2641 tlnum = 1L; | 2641 tlnum = 1L; |
2642 } | 2642 } |
2643 (void)buflist_new(ffname, sfname, tlnum, BLN_LISTED); | 2643 // Add BLN_NOCURWIN to avoid a new wininfo items is assocated |
2644 // with the current window. | |
2645 (void)buflist_new(ffname, sfname, tlnum, | |
2646 BLN_LISTED | BLN_NOCURWIN); | |
2644 goto theend; | 2647 goto theend; |
2645 } | 2648 } |
2646 buf = buflist_new(ffname, sfname, 0L, | 2649 buf = buflist_new(ffname, sfname, 0L, |
2647 BLN_CURBUF | ((flags & ECMD_SET_HELP) ? 0 : BLN_LISTED)); | 2650 BLN_CURBUF | ((flags & ECMD_SET_HELP) ? 0 : BLN_LISTED)); |
2648 | 2651 |