comparison src/digraph.c @ 25306:078edc1821bf v8.2.3190

patch 8.2.3190: error messages are spread out Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 20 21:07:36 2021 +0200 patch 8.2.3190: error messages are spread out Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Jul 2021 21:15:05 +0200
parents c626fd34b66f
children 890fd8211202
comparison
equal deleted inserted replaced
25305:4032f1628500 25306:078edc1821bf
2072 return; 2072 return;
2073 2073
2074 str = skipwhite(str); 2074 str = skipwhite(str);
2075 if (!VIM_ISDIGIT(*str)) 2075 if (!VIM_ISDIGIT(*str))
2076 { 2076 {
2077 emsg(_(e_number_exp)); 2077 emsg(_(e_number_expected));
2078 return; 2078 return;
2079 } 2079 }
2080 n = getdigits(&str); 2080 n = getdigits(&str);
2081 2081
2082 registerdigraph(char1, char2, n); 2082 registerdigraph(char1, char2, n);
2569 // Source the keymap file. It will contain a ":loadkeymap" command 2569 // Source the keymap file. It will contain a ":loadkeymap" command
2570 // which will call ex_loadkeymap() below. 2570 // which will call ex_loadkeymap() below.
2571 buflen = STRLEN(curbuf->b_p_keymap) + STRLEN(p_enc) + 14; 2571 buflen = STRLEN(curbuf->b_p_keymap) + STRLEN(p_enc) + 14;
2572 buf = alloc(buflen); 2572 buf = alloc(buflen);
2573 if (buf == NULL) 2573 if (buf == NULL)
2574 return e_outofmem; 2574 return e_out_of_memory;
2575 2575
2576 // try finding "keymap/'keymap'_'encoding'.vim" in 'runtimepath' 2576 // try finding "keymap/'keymap'_'encoding'.vim" in 'runtimepath'
2577 vim_snprintf((char *)buf, buflen, "keymap/%s_%s.vim", 2577 vim_snprintf((char *)buf, buflen, "keymap/%s_%s.vim",
2578 curbuf->b_p_keymap, p_enc); 2578 curbuf->b_p_keymap, p_enc);
2579 if (source_runtime(buf, 0) == FAIL) 2579 if (source_runtime(buf, 0) == FAIL)