diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-19 18:46:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-19 18:46:57 +0100 |
commit | 5e94a29ebbde10dd973d58f1adba9a2fc83877d1 (patch) | |
tree | 66b87e6f87e558d31f2313791895a428fe9dead3 /src/ex_getln.c | |
parent | 37f471df6ee422beb4d08ee4ccda35f8279e3bb7 (diff) | |
download | vim-git-5e94a29ebbde10dd973d58f1adba9a2fc83877d1.tar.gz |
patch 8.2.0413: buffer menu does not handle special buffers properlyv8.2.0413
Problem: Buffer menu does not handle special buffers properly.
Solution: Keep a dictionary with buffer names to reliably keep track of
entries.
Also trigger BufFilePre and BufFilePost for command-line and
terminal buffers when the name changes.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 7193a2ac6..bc3cccc63 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4195,7 +4195,9 @@ open_cmdwin(void) // Create the command-line buffer empty. (void)do_ecmd(0, NULL, NULL, NULL, ECMD_ONE, ECMD_HIDE, NULL); + apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); (void)setfname(curbuf, (char_u *)"[Command Line]", NULL, TRUE); + apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, curbuf); set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL); curbuf->b_p_ma = TRUE; #ifdef FEAT_FOLDING |