summaryrefslogtreecommitdiffstats
path: root/src/bufwrite.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-20 11:49:10 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-20 11:49:10 +0100
commit500a1f9972afa354f0bc77bc535aabf9f5f0116d (patch)
treef7a6f9e74ec4e5c54c230c9003b3032a7ae19b23 /src/bufwrite.c
parentcd9fa256b587b2805faeaaa4b7a8c7d483a8ac54 (diff)
patch 9.0.0509: confusing error for "saveas" command with "nofile" bufferv9.0.0509
Problem: Confusing error for "saveas" command with "nofile" buffer. Solution: Give a clearer error message. (closes #11171)
Diffstat (limited to 'src/bufwrite.c')
-rw-r--r--src/bufwrite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bufwrite.c b/src/bufwrite.c
index b283b5eb64..3ff7fb3390 100644
--- a/src/bufwrite.c
+++ b/src/bufwrite.c
@@ -888,7 +888,8 @@ buf_write(
--no_wait_return;
msg_scroll = msg_save;
if (nofile_err)
- emsg(_(e_no_matching_autocommands_for_acwrite_buffer));
+ semsg(_(e_no_matching_autocommands_for_buftype_str_buffer),
+ curbuf->b_p_bt);
if (nofile_err
#ifdef FEAT_EVAL