Mercurial > vim
comparison src/ex_cmds.c @ 26915:3631d2deb36c v8.2.3986
patch 8.2.3986: error messages are spread out
Commit: https://github.com/vim/vim/commit/b09feaa86ecc53b9b953710082496951776dc5c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 2 20:20:45 2022 +0000
patch 8.2.3986: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jan 2022 21:30:04 +0100 |
parents | 7f150a4936f2 |
children | d92e0d85923f |
comparison
equal
deleted
inserted
replaced
26914:21f9376239a4 | 26915:3631d2deb36c |
---|---|
1860 static int | 1860 static int |
1861 check_writable(char_u *fname) | 1861 check_writable(char_u *fname) |
1862 { | 1862 { |
1863 if (mch_nodetype(fname) == NODE_OTHER) | 1863 if (mch_nodetype(fname) == NODE_OTHER) |
1864 { | 1864 { |
1865 semsg(_("E503: \"%s\" is not a file or writable device"), fname); | 1865 semsg(_(e_str_is_not_file_or_writable_device), fname); |
1866 return FAIL; | 1866 return FAIL; |
1867 } | 1867 } |
1868 return OK; | 1868 return OK; |
1869 } | 1869 } |
1870 #endif | 1870 #endif |
2355 else | 2355 else |
2356 #endif | 2356 #endif |
2357 if (buf->b_p_ro) | 2357 if (buf->b_p_ro) |
2358 emsg(_(e_readonly_option_is_set_add_bang_to_override)); | 2358 emsg(_(e_readonly_option_is_set_add_bang_to_override)); |
2359 else | 2359 else |
2360 semsg(_("E505: \"%s\" is read-only (add ! to override)"), | 2360 semsg(_(e_str_is_read_only_add_bang_to_override), buf->b_fname); |
2361 buf->b_fname); | |
2362 return TRUE; | 2361 return TRUE; |
2363 } | 2362 } |
2364 | 2363 |
2365 return FALSE; | 2364 return FALSE; |
2366 } | 2365 } |