comparison src/getchar.c @ 26771:fc859aea8cec v8.2.3914

patch 8.2.3914: various spelling mistakes in comments Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673 Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Mon Dec 27 17:21:41 2021 +0000 patch 8.2.3914: various spelling mistakes in comments Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Dec 2021 18:30:05 +0100
parents 9f445e07f766
children df2de1e63de0
comparison
equal deleted inserted replaced
26770:15ff3f2e0d58 26771:fc859aea8cec
74 #define RM_SCRIPT 2 // tb_noremap: remap local script mappings 74 #define RM_SCRIPT 2 // tb_noremap: remap local script mappings
75 #define RM_ABBR 4 // tb_noremap: don't remap, do abbrev. 75 #define RM_ABBR 4 // tb_noremap: don't remap, do abbrev.
76 76
77 // typebuf.tb_buf has three parts: room in front (for result of mappings), the 77 // typebuf.tb_buf has three parts: room in front (for result of mappings), the
78 // middle for typeahead and room for new characters (which needs to be 3 * 78 // middle for typeahead and room for new characters (which needs to be 3 *
79 // MAXMAPLEN) for the Amiga). 79 // MAXMAPLEN for the Amiga).
80 #define TYPELEN_INIT (5 * (MAXMAPLEN + 3)) 80 #define TYPELEN_INIT (5 * (MAXMAPLEN + 3))
81 static char_u typebuf_init[TYPELEN_INIT]; // initial typebuf.tb_buf 81 static char_u typebuf_init[TYPELEN_INIT]; // initial typebuf.tb_buf
82 static char_u noremapbuf_init[TYPELEN_INIT]; // initial typebuf.tb_noremap 82 static char_u noremapbuf_init[TYPELEN_INIT]; // initial typebuf.tb_noremap
83 83
84 static int last_recorded_len = 0; // number of last recorded chars 84 static int last_recorded_len = 0; // number of last recorded chars
939 * Insert a string in position 'offset' in the typeahead buffer (for "@r" 939 * Insert a string in position 'offset' in the typeahead buffer (for "@r"
940 * and ":normal" command, vgetorpeek() and check_termcode()). 940 * and ":normal" command, vgetorpeek() and check_termcode()).
941 * 941 *
942 * If noremap is REMAP_YES, new string can be mapped again. 942 * If noremap is REMAP_YES, new string can be mapped again.
943 * If noremap is REMAP_NONE, new string cannot be mapped again. 943 * If noremap is REMAP_NONE, new string cannot be mapped again.
944 * If noremap is REMAP_SKIP, fist char of new string cannot be mapped again, 944 * If noremap is REMAP_SKIP, first char of new string cannot be mapped again,
945 * but abbreviations are allowed. 945 * but abbreviations are allowed.
946 * If noremap is REMAP_SCRIPT, new string cannot be mapped again, except for 946 * If noremap is REMAP_SCRIPT, new string cannot be mapped again, except for
947 * script-local mappings. 947 * script-local mappings.
948 * If noremap is > 0, that many characters of the new string cannot be mapped. 948 * If noremap is > 0, that many characters of the new string cannot be mapped.
949 * 949 *
3455 */ 3455 */
3456 static int 3456 static int
3457 inchar( 3457 inchar(
3458 char_u *buf, 3458 char_u *buf,
3459 int maxlen, 3459 int maxlen,
3460 long wait_time) // milli seconds 3460 long wait_time) // milliseconds
3461 { 3461 {
3462 int len = 0; // init for GCC 3462 int len = 0; // init for GCC
3463 int retesc = FALSE; // return ESC with gotint 3463 int retesc = FALSE; // return ESC with gotint
3464 int script_char; 3464 int script_char;
3465 int tb_change_cnt = typebuf.tb_change_cnt; 3465 int tb_change_cnt = typebuf.tb_change_cnt;