comparison src/autocmd.c @ 26877:06a137af96f8 v8.2.3967

patch 8.2.3967: error messages are spread out Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:19:49 2022 +0000 patch 8.2.3967: 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 Sat, 01 Jan 2022 15:30:05 +0100
parents bce848ec8b1b
children b0ef52086d57
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
909 { 909 {
910 // Check for "++once" flag. 910 // Check for "++once" flag.
911 if (STRNCMP(cmd, "++once", 6) == 0 && VIM_ISWHITE(cmd[6])) 911 if (STRNCMP(cmd, "++once", 6) == 0 && VIM_ISWHITE(cmd[6]))
912 { 912 {
913 if (once) 913 if (once)
914 semsg(_(e_duparg2), "++once"); 914 semsg(_(e_duplicate_argument_str), "++once");
915 once = TRUE; 915 once = TRUE;
916 cmd = skipwhite(cmd + 6); 916 cmd = skipwhite(cmd + 6);
917 } 917 }
918 918
919 // Check for "++nested" flag. 919 // Check for "++nested" flag.
920 if ((STRNCMP(cmd, "++nested", 8) == 0 && VIM_ISWHITE(cmd[8]))) 920 if ((STRNCMP(cmd, "++nested", 8) == 0 && VIM_ISWHITE(cmd[8])))
921 { 921 {
922 if (nested) 922 if (nested)
923 semsg(_(e_duparg2), "++nested"); 923 semsg(_(e_duplicate_argument_str), "++nested");
924 nested = TRUE; 924 nested = TRUE;
925 cmd = skipwhite(cmd + 8); 925 cmd = skipwhite(cmd + 8);
926 } 926 }
927 927
928 // Check for the old "nested" flag. 928 // Check for the old "nested" flag.
929 if (STRNCMP(cmd, "nested", 6) == 0 && VIM_ISWHITE(cmd[6])) 929 if (STRNCMP(cmd, "nested", 6) == 0 && VIM_ISWHITE(cmd[6]))
930 { 930 {
931 if (nested) 931 if (nested)
932 semsg(_(e_duparg2), "nested"); 932 semsg(_(e_duplicate_argument_str), "nested");
933 nested = TRUE; 933 nested = TRUE;
934 cmd = skipwhite(cmd + 6); 934 cmd = skipwhite(cmd + 6);
935 } 935 }
936 } 936 }
937 } 937 }