vim-patch:8.2.3547: opening the quickfix window triggers BufWinEnter twice (#16108)

Problem:    Opening the quickfix window triggers BufWinEnter twice. (Yorick
            Peterse)
Solution:   Only trigger BufWinEnter with "quickfix". (closes vim/vim#9022)
1d30fde3c9
This commit is contained in:
Yorick Peterse
2021-10-24 03:55:04 +02:00
committed by GitHub
parent 9f392c071a
commit 6acebb8b56
6 changed files with 35 additions and 8 deletions

View File

@@ -16,7 +16,8 @@
#define ECMD_OLDBUF 0x04 // use existing buffer if it exists
#define ECMD_FORCEIT 0x08 // ! used in Ex command
#define ECMD_ADDBUF 0x10 // don't edit, just add to buffer list
#define ECMD_ALTBUF 0x20 // like ECMD_ADDBUF and set the alternate file
#define ECMD_ALTBUF 0x20 // like ECMD_ADDBUF and set the alternate file
#define ECMD_NOWINENTER 0x40 // do not trigger BufWinEnter
// for lnum argument in do_ecmd()
#define ECMD_LASTL (linenr_T)0 // use last position in loaded file