Lines Matching refs:newp
1021 char_u *newp; in ins_char_bytes() local
1096 newp = alloc(linelen + newlen - oldlen); in ins_char_bytes()
1097 if (newp == NULL) in ins_char_bytes()
1102 mch_memmove(newp, oldp, (size_t)col); in ins_char_bytes()
1105 p = newp + col; in ins_char_bytes()
1119 ml_replace(lnum, newp, FALSE); in ins_char_bytes()
1155 char_u *oldp, *newp; in ins_str() local
1168 newp = alloc(oldlen + newlen + 1); in ins_str()
1169 if (newp == NULL) in ins_str()
1172 mch_memmove(newp, oldp, (size_t)col); in ins_str()
1173 mch_memmove(newp + col, s, (size_t)newlen); in ins_str()
1174 mch_memmove(newp + col + newlen, oldp + col, (size_t)(oldlen - col + 1)); in ins_str()
1175 ml_replace(lnum, newp, FALSE); in ins_str()
1235 char_u *oldp, *newp; in del_bytes() local
1318 newp = oldp; // use same allocated memory in del_bytes()
1321 newp = alloc(newlen + 1); in del_bytes()
1322 if (newp == NULL) in del_bytes()
1324 mch_memmove(newp, oldp, (size_t)col); in del_bytes()
1326 mch_memmove(newp + col, oldp + col + count, (size_t)movelen); in del_bytes()
1328 ml_replace(lnum, newp, FALSE); in del_bytes()
1334 mch_memmove(newp + newlen + 1, oldp + oldlen + 1, in del_bytes()
2313 char_u *newp; in truncate_line() local
2318 newp = vim_strsave((char_u *)""); in truncate_line()
2320 newp = vim_strnsave(ml_get(lnum), col); in truncate_line()
2322 if (newp == NULL) in truncate_line()
2325 ml_replace(lnum, newp, FALSE); in truncate_line()