Lines Matching refs:oldlen
1019 int oldlen; // nr of bytes deleted (0 when not replacing) in ins_char_bytes() local
1037 oldlen = 0; in ins_char_bytes()
1061 while (oldp[col + oldlen] != NUL && vcol < new_vcol) in ins_char_bytes()
1063 vcol += chartabsize(oldp + col + oldlen, vcol); in ins_char_bytes()
1066 if (vcol > new_vcol && oldp[col + oldlen] == TAB) in ins_char_bytes()
1068 oldlen += (*mb_ptr2len)(oldp + col + oldlen); in ins_char_bytes()
1078 oldlen = (*mb_ptr2len)(oldp + col); in ins_char_bytes()
1087 for (i = 0; i < oldlen; ++i) in ins_char_bytes()
1096 newp = alloc(linelen + newlen - oldlen); in ins_char_bytes()
1106 if (linelen > col + oldlen) in ins_char_bytes()
1107 mch_memmove(p + newlen, oldp + col + oldlen, in ins_char_bytes()
1108 (size_t)(linelen - col - oldlen)); in ins_char_bytes()
1122 inserted_bytes(lnum, col, newlen - oldlen); in ins_char_bytes()
1157 int oldlen; in ins_str() local
1166 oldlen = (int)STRLEN(oldp); in ins_str()
1168 newp = alloc(oldlen + newlen + 1); in ins_str()
1174 mch_memmove(newp + col + newlen, oldp + col, (size_t)(oldlen - col + 1)); in ins_str()
1236 colnr_T oldlen; in del_bytes() local
1245 oldlen = (int)STRLEN(oldp); in del_bytes()
1248 if (col >= oldlen) in del_bytes()
1286 movelen = (long)oldlen - (long)col - count + 1; // includes trailing NUL in del_bytes()
1301 count = oldlen - col; in del_bytes()
1304 newlen = oldlen - count; in del_bytes()
1333 if (oldlen + 1 < curbuf->b_ml.ml_line_len) in del_bytes()
1334 mch_memmove(newp + newlen + 1, oldp + oldlen + 1, in del_bytes()
1335 (size_t)curbuf->b_ml.ml_line_len - oldlen - 1); in del_bytes()