comparison src/bufwrite.c @ 26883:7f150a4936f2 v8.2.3970

patch 8.2.3970: error messages are spread out Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 15:58:22 2022 +0000 patch 8.2.3970: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 17:00:04 +0100
parents 06a137af96f8
children d0241e74bfdb
comparison
equal deleted inserted replaced
26882:196f4d7e2a38 26883:7f150a4936f2
698 return FAIL; 698 return FAIL;
699 if (buf->b_ml.ml_mfp == NULL) 699 if (buf->b_ml.ml_mfp == NULL)
700 { 700 {
701 // This can happen during startup when there is a stray "w" in the 701 // This can happen during startup when there is a stray "w" in the
702 // vimrc file. 702 // vimrc file.
703 emsg(_(e_emptybuf)); 703 emsg(_(e_empty_buffer));
704 return FAIL; 704 return FAIL;
705 } 705 }
706 706
707 // Disallow writing from .exrc and .vimrc in current directory for 707 // Disallow writing from .exrc and .vimrc in current directory for
708 // security reasons. 708 // security reasons.