Lines Matching refs:offset
965 int offset, in ins_typebuf() argument
984 if (offset == 0 && addlen <= typebuf.tb_off) in ins_typebuf()
1035 (size_t)offset); in ins_typebuf()
1037 mch_memmove(s1 + newoff + offset, str, (size_t)addlen); in ins_typebuf()
1040 mch_memmove(s1 + newoff + offset + addlen, in ins_typebuf()
1041 typebuf.tb_buf + typebuf.tb_off + offset, in ins_typebuf()
1042 (size_t)(typebuf.tb_len - offset + 1)); in ins_typebuf()
1048 (size_t)offset); in ins_typebuf()
1049 mch_memmove(s2 + newoff + offset + addlen, in ins_typebuf()
1050 typebuf.tb_noremap + typebuf.tb_off + offset, in ins_typebuf()
1051 (size_t)(typebuf.tb_len - offset)); in ins_typebuf()
1083 typebuf.tb_noremap[typebuf.tb_off + i + offset] = in ins_typebuf()
1089 if (nottyped || typebuf.tb_maplen > offset) in ins_typebuf()
1091 if (silent || typebuf.tb_silent > offset) in ins_typebuf()
1096 if (typebuf.tb_no_abbr_cnt && offset == 0) // and not used for abbrev.s in ins_typebuf()
1178 del_typebuf(int len, int offset) in del_typebuf() argument
1190 if (offset == 0 && typebuf.tb_buflen - (typebuf.tb_off + len) in del_typebuf()
1198 i = typebuf.tb_off + offset; in del_typebuf()
1205 typebuf.tb_buf + typebuf.tb_off, (size_t)offset); in del_typebuf()
1207 typebuf.tb_noremap + typebuf.tb_off, (size_t)offset); in del_typebuf()
1211 mch_memmove(typebuf.tb_buf + typebuf.tb_off + offset, in del_typebuf()
1213 (size_t)(typebuf.tb_len - offset + 1)); in del_typebuf()
1215 mch_memmove(typebuf.tb_noremap + typebuf.tb_off + offset, in del_typebuf()
1217 (size_t)(typebuf.tb_len - offset)); in del_typebuf()
1220 if (typebuf.tb_maplen > offset) // adjust tb_maplen in del_typebuf()
1222 if (typebuf.tb_maplen < offset + len) in del_typebuf()
1223 typebuf.tb_maplen = offset; in del_typebuf()
1227 if (typebuf.tb_silent > offset) // adjust tb_silent in del_typebuf()
1229 if (typebuf.tb_silent < offset + len) in del_typebuf()
1230 typebuf.tb_silent = offset; in del_typebuf()
1234 if (typebuf.tb_no_abbr_cnt > offset) // adjust tb_no_abbr_cnt in del_typebuf()
1236 if (typebuf.tb_no_abbr_cnt < offset + len) in del_typebuf()
1237 typebuf.tb_no_abbr_cnt = offset; in del_typebuf()
2321 int offset; in check_simplify_modifier() local
2324 for (offset = 0; offset < max_offset; ++offset) in check_simplify_modifier()
2326 if (offset + 3 >= typebuf.tb_len) in check_simplify_modifier()
2328 tp = typebuf.tb_buf + typebuf.tb_off + offset; in check_simplify_modifier()
2342 if (offset == 0) in check_simplify_modifier()
2353 if (put_string_in_typebuf(offset, 4, new_string, len, in check_simplify_modifier()
2360 if (put_string_in_typebuf(offset + 3, 1, new_string, len, in check_simplify_modifier()