diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-02 20:20:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-02 20:20:45 +0000 |
commit | b09feaa86ecc53b9b953710082496951776dc5c6 (patch) | |
tree | 0baf02c96c94c26072e9afdb833e638c3ab1a9cb /src/ex_cmds.c | |
parent | ac78dd4a352196ca4e6640f8e4caaf126afd49e3 (diff) | |
download | vim-git-b09feaa86ecc53b9b953710082496951776dc5c6.tar.gz |
patch 8.2.3986: error messages are spread outv8.2.3986
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index b3ab21431..351ce8286 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1862,7 +1862,7 @@ check_writable(char_u *fname) { if (mch_nodetype(fname) == NODE_OTHER) { - semsg(_("E503: \"%s\" is not a file or writable device"), fname); + semsg(_(e_str_is_not_file_or_writable_device), fname); return FAIL; } return OK; @@ -2357,8 +2357,7 @@ check_readonly(int *forceit, buf_T *buf) if (buf->b_p_ro) emsg(_(e_readonly_option_is_set_add_bang_to_override)); else - semsg(_("E505: \"%s\" is read-only (add ! to override)"), - buf->b_fname); + semsg(_(e_str_is_read_only_add_bang_to_override), buf->b_fname); return TRUE; } |