Lines Matching refs:spaces
484 int spaces = 0; // non-zero if cutting a TAB in block_insert() local
506 spaces = bdp->startspaces; in block_insert()
507 if (spaces != 0) in block_insert()
516 spaces = (bdp->endspaces ? ts_val - bdp->endspaces : 0); in block_insert()
517 if (spaces != 0) in block_insert()
519 offset = bdp->textcol + bdp->textlen - (spaces != 0); in block_insert()
525 spaces = (oap->end_vcol - bdp->end_vcol) + 1; in block_insert()
526 count = spaces; in block_insert()
531 if (has_mbyte && spaces > 0) in block_insert()
538 off = (*mb_head_off)(oldp, oldp + offset + spaces); in block_insert()
545 spaces -= off; in block_insert()
548 if (spaces < 0) // can happen when the cursor was moved in block_insert()
549 spaces = 0; in block_insert()
560 vim_memset(newp + offset, ' ', (size_t)spaces); in block_insert()
561 startcol = offset + spaces; in block_insert()
567 if (spaces && !bdp->is_short) in block_insert()
570 vim_memset(newp + offset + spaces, ' ', (size_t)(ts_val - spaces)); in block_insert()
577 if (spaces > 0) in block_insert()
1939 char_u *spaces; // number of spaces inserted before a line in do_join() local
1963 spaces = lalloc_clear(count, TRUE); in do_join()
1964 if (spaces == NULL) in do_join()
1971 vim_free(spaces); in do_join()
2028 ++spaces[t]; in do_join()
2034 ++spaces[t]; in do_join()
2038 sumsize += currsize + spaces[t]; in do_join()
2069 col = sumsize - currsize - spaces[count - 1]; in do_join()
2103 if (spaces[t] > 0) in do_join()
2105 cend -= spaces[t]; in do_join()
2106 vim_memset(cend, ' ', (size_t)(spaces[t])); in do_join()
2111 spaces_removed = (curr - curr_start) - spaces[t]; in do_join()
2167 vim_free(spaces); in do_join()