comparison src/getchar.c @ 26436:ef0c07cbf53f v8.2.3749

patch 8.2.3749: error messages are everywhere Commit: https://github.com/vim/vim/commit/12f3c1b77fb39dc338304d5484cdbc99da27389a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 5 21:46:34 2021 +0000 patch 8.2.3749: error messages are everywhere Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Dec 2021 23:00:06 +0100
parents 7d66d585bffa
children 9f445e07f766
comparison
equal deleted inserted replaced
26435:8860c02d96a8 26436:ef0c07cbf53f
1008 newoff = MAXMAPLEN + 4; 1008 newoff = MAXMAPLEN + 4;
1009 extra = addlen + newoff + 4 * (MAXMAPLEN + 4); 1009 extra = addlen + newoff + 4 * (MAXMAPLEN + 4);
1010 if (typebuf.tb_len > 2147483647 - extra) 1010 if (typebuf.tb_len > 2147483647 - extra)
1011 { 1011 {
1012 // string is getting too long for a 32 bit int 1012 // string is getting too long for a 32 bit int
1013 emsg(_(e_toocompl)); // also calls flush_buffers 1013 emsg(_(e_command_too_complex)); // also calls flush_buffers
1014 setcursor(); 1014 setcursor();
1015 return FAIL; 1015 return FAIL;
1016 } 1016 }
1017 newlen = typebuf.tb_len + extra; 1017 newlen = typebuf.tb_len + extra;
1018 s1 = alloc(newlen); 1018 s1 = alloc(newlen);