comparison src/bufwrite.c @ 30347:ea2935ec4435 v9.0.0509

patch 9.0.0509: confusing error for "saveas" command with "nofile" buffer Commit: https://github.com/vim/vim/commit/500a1f9972afa354f0bc77bc535aabf9f5f0116d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 20 11:49:10 2022 +0100 patch 9.0.0509: confusing error for "saveas" command with "nofile" buffer Problem: Confusing error for "saveas" command with "nofile" buffer. Solution: Give a clearer error message. (closes https://github.com/vim/vim/issues/11171)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Sep 2022 13:00:04 +0200
parents 77141226eb2e
children 3a01529f17f5
comparison
equal deleted inserted replaced
30346:3e591e2485d3 30347:ea2935ec4435
886 } 886 }
887 887
888 --no_wait_return; 888 --no_wait_return;
889 msg_scroll = msg_save; 889 msg_scroll = msg_save;
890 if (nofile_err) 890 if (nofile_err)
891 emsg(_(e_no_matching_autocommands_for_acwrite_buffer)); 891 semsg(_(e_no_matching_autocommands_for_buftype_str_buffer),
892 curbuf->b_p_bt);
892 893
893 if (nofile_err 894 if (nofile_err
894 #ifdef FEAT_EVAL 895 #ifdef FEAT_EVAL
895 || aborting() 896 || aborting()
896 #endif 897 #endif