comparison src/autocmd.c @ 26861:df2de1e63de0 v8.2.3959

patch 8.2.3959: error messages are spread out Commit: https://github.com/vim/vim/commit/6d0570117ac86b7979bf249de5741088212d6e17 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 31 18:49:43 2021 +0000 patch 8.2.3959: 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 Fri, 31 Dec 2021 20:00:05 +0100
parents af919f98c7e1
children 6ee19c6ae8a2
comparison
equal deleted inserted replaced
26860:07ad81bfab52 26861:df2de1e63de0
685 685
686 if (*arg == '*') 686 if (*arg == '*')
687 { 687 {
688 if (arg[1] && !VIM_ISWHITE(arg[1])) 688 if (arg[1] && !VIM_ISWHITE(arg[1]))
689 { 689 {
690 semsg(_("E215: Illegal character after *: %s"), arg); 690 semsg(_(e_illegal_character_after_star_str), arg);
691 return NULL; 691 return NULL;
692 } 692 }
693 pat = arg + 1; 693 pat = arg + 1;
694 } 694 }
695 else 695 else
697 for (pat = arg; *pat && *pat != '|' && !VIM_ISWHITE(*pat); pat = p) 697 for (pat = arg; *pat && *pat != '|' && !VIM_ISWHITE(*pat); pat = p)
698 { 698 {
699 if ((int)event_name2nr(pat, &p) >= NUM_EVENTS) 699 if ((int)event_name2nr(pat, &p) >= NUM_EVENTS)
700 { 700 {
701 if (have_group) 701 if (have_group)
702 semsg(_("E216: No such event: %s"), pat); 702 semsg(_(e_no_such_event_str), pat);
703 else 703 else
704 semsg(_("E216: No such group or event: %s"), pat); 704 semsg(_(e_no_such_group_or_event_str), pat);
705 return NULL; 705 return NULL;
706 } 706 }
707 } 707 }
708 } 708 }
709 return pat; 709 return pat;
1327 if (arg == NULL) // out of memory 1327 if (arg == NULL) // out of memory
1328 return FAIL; 1328 return FAIL;
1329 1329
1330 if (*arg == '*') 1330 if (*arg == '*')
1331 { 1331 {
1332 emsg(_("E217: Can't execute autocommands for ALL events")); 1332 emsg(_(e_cant_execute_autocommands_for_all_events));
1333 return FAIL; 1333 return FAIL;
1334 } 1334 }
1335 1335
1336 /* 1336 /*
1337 * Scan over the events. 1337 * Scan over the events.
1940 * Allow nesting of autocommands, but restrict the depth, because it's 1940 * Allow nesting of autocommands, but restrict the depth, because it's
1941 * possible to create an endless loop. 1941 * possible to create an endless loop.
1942 */ 1942 */
1943 if (nesting == 10) 1943 if (nesting == 10)
1944 { 1944 {
1945 emsg(_("E218: autocommand nesting too deep")); 1945 emsg(_(e_autocommand_nesting_too_deep));
1946 goto BYPASS_AU; 1946 goto BYPASS_AU;
1947 } 1947 }
1948 1948
1949 /* 1949 /*
1950 * Check if these autocommands are disabled. Used when doing ":all" or 1950 * Check if these autocommands are disabled. Used when doing ":all" or