Lines Matching refs:idx
129 int idx; in coladvance2() local
147 idx = (int)STRLEN(line) - 1 + one_more; in coladvance2()
194 idx = (int)(ptr - line); in coladvance2()
203 idx -= 1; in coladvance2()
219 if (line[idx] == NUL) in coladvance2()
223 char_u *newline = alloc(idx + correct + 1); in coladvance2()
229 for (t = 0; t < idx; ++t) in coladvance2()
233 newline[t + idx] = ' '; in coladvance2()
235 newline[idx + correct] = NUL; in coladvance2()
238 changed_bytes(pos->lnum, (colnr_T)idx); in coladvance2()
239 idx += correct; in coladvance2()
260 if (t != idx) in coladvance2()
270 changed_bytes(pos->lnum, idx); in coladvance2()
271 idx += (csize - 1 + correct); in coladvance2()
277 if (idx < 0) in coladvance2()
280 pos->col = idx; in coladvance2()
1155 int i, idx; in get_special_key_name() local
1160 idx = 1; in get_special_key_name()
1217 string[idx++] = mod_mask_table[i].name; in get_special_key_name()
1218 string[idx++] = (char_u)'-'; in get_special_key_name()
1225 string[idx++] = 't'; in get_special_key_name()
1226 string[idx++] = '_'; in get_special_key_name()
1227 string[idx++] = KEY2TERMCAP0(c); in get_special_key_name()
1228 string[idx++] = KEY2TERMCAP1(c); in get_special_key_name()
1234 idx += (*mb_char2bytes)(c, string + idx); in get_special_key_name()
1236 string[idx++] = c; in get_special_key_name()
1241 string[idx++] = *s++; in get_special_key_name()
1249 if (len + idx + 2 <= MAX_KEY_NAME_LEN) in get_special_key_name()
1251 STRCPY(string + idx, key_names_table[table_idx].name); in get_special_key_name()
1252 idx += (int)len; in get_special_key_name()
1255 string[idx++] = '>'; in get_special_key_name()
1256 string[idx] = NUL; in get_special_key_name()
2043 int idx = 0; // init for GCC in parse_shape_opt() local
2093 for (idx = 0; idx < SHAPE_IDX_COUNT; ++idx) in parse_shape_opt()
2094 if (STRNICMP(modep, shape_table[idx].name, len) in parse_shape_opt()
2097 if (idx == SHAPE_IDX_COUNT in parse_shape_opt()
2098 || (shape_table[idx].used_for & what) == 0) in parse_shape_opt()
2107 idx = all_idx--; in parse_shape_opt()
2114 shape_table[idx].mshape = 0; in parse_shape_opt()
2120 shape_table[idx].shape = SHAPE_BLOCK; in parse_shape_opt()
2121 shape_table[idx].blinkwait = 700L; in parse_shape_opt()
2122 shape_table[idx].blinkon = 400L; in parse_shape_opt()
2123 shape_table[idx].blinkoff = 250L; in parse_shape_opt()
2140 shape_table[idx].mshape = in parse_shape_opt()
2150 shape_table[idx].mshape = i; in parse_shape_opt()
2187 shape_table[idx].shape = SHAPE_VER; in parse_shape_opt()
2189 shape_table[idx].shape = SHAPE_HOR; in parse_shape_opt()
2190 shape_table[idx].percentage = n; in parse_shape_opt()
2196 shape_table[idx].blinkwait = n; in parse_shape_opt()
2198 shape_table[idx].blinkon = n; in parse_shape_opt()
2200 shape_table[idx].blinkoff = n; in parse_shape_opt()
2206 shape_table[idx].shape = SHAPE_BLOCK; in parse_shape_opt()
2228 shape_table[idx].id = syn_check_group(p, in parse_shape_opt()
2230 shape_table[idx].id_lm = shape_table[idx].id; in parse_shape_opt()
2232 shape_table[idx].id = i; in parse_shape_opt()