diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-04-25 08:44:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 08:44:18 -0600 |
commit | 2dddc86a42a77bd099a031165e57add84b9b0e82 (patch) | |
tree | 3c94c7606c30e172d6dd28f375d9e4c2c422bc1c /src/nvim/ex_cmds.c | |
parent | 440b65c338a7ab18e4ed2256d411cf0d3ce698c4 (diff) | |
download | rneovim-2dddc86a42a77bd099a031165e57add84b9b0e82.tar.gz rneovim-2dddc86a42a77bd099a031165e57add84b9b0e82.tar.bz2 rneovim-2dddc86a42a77bd099a031165e57add84b9b0e82.zip |
fix: show autocmd output when F is in shortmess (#18251)
The default value of including F in 'shortmess' has the unfortunate side
effect of hiding output from autocommands. This is a common source of
confusion and often leads people to think their autocommands are not
working when they are. There is a small snippet in the docs for
'shortmess' indicating that the F flag suppresses autocmd output, but
it's not easy to find if you don't already know to look for it.
This commit removes that behavior of the F flag to make it only suppress
file info when opening a new file.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index d4c21bb33f..7564b9326b 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1387,7 +1387,7 @@ static void do_filter(linenr_T line1, linenr_T line2, exarg_T *eap, char_u *cmd, if (do_out) { if (otmp != NULL) { if (readfile(otmp, NULL, line2, (linenr_T)0, (linenr_T)MAXLNUM, eap, - READ_FILTER) != OK) { + READ_FILTER, false) != OK) { if (!aborting()) { msg_putchar('\n'); semsg(_(e_notread), otmp); |