Mercurial > vim
comparison src/ex_cmds.c @ 21821:0deb6f96a5a3 v8.2.1460
patch 8.2.1460: error messages are spread out
Commit: https://github.com/vim/vim/commit/451c2e3536a3cb77d07faf3cb2b834512e174351
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 15 16:33:28 2020 +0200
patch 8.2.1460: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more messages into errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Aug 2020 16:45:04 +0200 |
parents | 2f2e528c5782 |
children | a6fe2e1ad5b0 |
comparison
equal
deleted
inserted
replaced
21820:5ab859e4430b | 21821:0deb6f96a5a3 |
---|---|
3840 } | 3840 } |
3841 | 3841 |
3842 if (search_regcomp(pat, RE_SUBST, which_pat, SEARCH_HIS, ®match) == FAIL) | 3842 if (search_regcomp(pat, RE_SUBST, which_pat, SEARCH_HIS, ®match) == FAIL) |
3843 { | 3843 { |
3844 if (subflags.do_error) | 3844 if (subflags.do_error) |
3845 emsg(_(e_invcmd)); | 3845 emsg(_(e_invalid_command)); |
3846 return; | 3846 return; |
3847 } | 3847 } |
3848 | 3848 |
3849 // the 'i' or 'I' flag overrules 'ignorecase' and 'smartcase' | 3849 // the 'i' or 'I' flag overrules 'ignorecase' and 'smartcase' |
3850 if (subflags.do_ic == 'i') | 3850 if (subflags.do_ic == 'i') |
4814 *cmd++ = NUL; // replace it with a NUL | 4814 *cmd++ = NUL; // replace it with a NUL |
4815 } | 4815 } |
4816 | 4816 |
4817 if (search_regcomp(pat, RE_BOTH, which_pat, SEARCH_HIS, ®match) == FAIL) | 4817 if (search_regcomp(pat, RE_BOTH, which_pat, SEARCH_HIS, ®match) == FAIL) |
4818 { | 4818 { |
4819 emsg(_(e_invcmd)); | 4819 emsg(_(e_invalid_command)); |
4820 return; | 4820 return; |
4821 } | 4821 } |
4822 | 4822 |
4823 if (global_busy) | 4823 if (global_busy) |
4824 { | 4824 { |