Lines Matching refs:curbuf

199     int		ts = ts_arg == 0 ? curbuf->b_p_ts : ts_arg;  in tabstop_fromto()
382 return curbuf->b_p_sts < 0 ? get_sw_value(curbuf) : curbuf->b_p_sts; in get_sts_value()
392 return get_indent_str_vtab(ml_get_curline(), (int)curbuf->b_p_ts, in get_indent()
393 curbuf->b_p_vts_array, FALSE); in get_indent()
395 return get_indent_str(ml_get_curline(), (int)curbuf->b_p_ts, FALSE); in get_indent()
406 return get_indent_str_vtab(ml_get(lnum), (int)curbuf->b_p_ts, in get_indent_lnum()
407 curbuf->b_p_vts_array, FALSE); in get_indent_lnum()
409 return get_indent_str(ml_get(lnum), (int)curbuf->b_p_ts, FALSE); in get_indent_lnum()
423 (int)curbuf->b_p_ts, buf->b_p_vts_array, FALSE); in get_indent_buf()
537 if (!curbuf->b_p_et || (!(flags & SIN_INSERT) && curbuf->b_p_pi)) in set_indent()
541 if (!(flags & SIN_INSERT) && curbuf->b_p_pi) in set_indent()
551 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in set_indent()
552 curbuf->b_p_vts_array); in set_indent()
554 tab_pad = (int)curbuf->b_p_ts in set_indent()
555 - (ind_done % (int)curbuf->b_p_ts); in set_indent()
579 if (curbuf->b_p_et) in set_indent()
584 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in set_indent()
585 curbuf->b_p_vts_array); in set_indent()
587 tab_pad = (int)curbuf->b_p_ts - (ind_done % (int)curbuf->b_p_ts); in set_indent()
605 tab_pad = tabstop_padding(ind_col, curbuf->b_p_ts, in set_indent()
606 curbuf->b_p_vts_array); in set_indent()
618 while (todo >= (int)curbuf->b_p_ts) in set_indent()
624 todo -= (int)curbuf->b_p_ts; in set_indent()
690 if (!curbuf->b_p_et) in set_indent()
694 if (!(flags & SIN_INSERT) && curbuf->b_p_pi) in set_indent()
704 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in set_indent()
705 curbuf->b_p_vts_array); in set_indent()
707 tab_pad = (int)curbuf->b_p_ts in set_indent()
708 - (ind_done % (int)curbuf->b_p_ts); in set_indent()
726 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in set_indent()
727 curbuf->b_p_vts_array); in set_indent()
729 tab_pad = (int)curbuf->b_p_ts - (ind_done % (int)curbuf->b_p_ts); in set_indent()
746 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in set_indent()
747 curbuf->b_p_vts_array); in set_indent()
755 while (todo >= (int)curbuf->b_p_ts) in set_indent()
758 todo -= (int)curbuf->b_p_ts; in set_indent()
826 if (lnum > curbuf->b_ml.ml_line_count) in get_number_indent()
834 regmatch.regprog = vim_regcomp(curbuf->b_p_flp, RE_MAGIC); in get_number_indent()
963 regmatch.regprog = vim_regcomp(curbuf->b_p_flp, in get_breakindent_win()
1033 if (!curbuf->b_p_ma) in op_reindent()
1097 curbuf->b_op_start = oap->start; in op_reindent()
1098 curbuf->b_op_end = oap->end; in op_reindent()
1113 (curbuf->b_p_si && !curbuf->b_p_cin) || in preprocs_left()
1115 curbuf->b_p_si in preprocs_left()
1119 (curbuf->b_p_cin && in_cinkeys('#', ' ', TRUE) in preprocs_left()
1120 && curbuf->b_ind_hash_comment == 0) in preprocs_left()
1464 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in copy_indent()
1465 curbuf->b_p_vts_array); in copy_indent()
1467 tab_pad = (int)curbuf->b_p_ts in copy_indent()
1468 - (ind_done % (int)curbuf->b_p_ts); in copy_indent()
1495 tab_pad = tabstop_padding(ind_done, curbuf->b_p_ts, in copy_indent()
1496 curbuf->b_p_vts_array); in copy_indent()
1498 tab_pad = (int)curbuf->b_p_ts - (ind_done % (int)curbuf->b_p_ts); in copy_indent()
1500 if (todo >= tab_pad && !curbuf->b_p_et) in copy_indent()
1512 if (!curbuf->b_p_et) in copy_indent()
1517 tab_pad = tabstop_padding(ind_col, curbuf->b_p_ts, in copy_indent()
1518 curbuf->b_p_vts_array); in copy_indent()
1528 while (todo >= (int)curbuf->b_p_ts) in copy_indent()
1530 todo -= (int)curbuf->b_p_ts; in copy_indent()
1615 new_vts_array = curbuf->b_p_vts_array; in ex_retab()
1634 new_ts = curbuf->b_p_ts; in ex_retab()
1666 if (!curbuf->b_p_et) in ex_retab()
1672 curbuf->b_p_ts, new_vts_array, &t, &s); in ex_retab()
1686 if (curbuf->b_p_et || got_tab || in ex_retab()
1715 new_line = curbuf->b_ml.ml_line_ptr; in ex_retab()
1744 if (tabstop_count(curbuf->b_p_vts_array) == 0 in ex_retab()
1746 && curbuf->b_p_ts == tabstop_first(new_vts_array)) in ex_retab()
1748 else if (tabstop_count(curbuf->b_p_vts_array) > 0 in ex_retab()
1749 && tabstop_eq(curbuf->b_p_vts_array, new_vts_array)) in ex_retab()
1754 if (curbuf->b_p_ts != new_ts) in ex_retab()
1767 int *old_vts_ary = curbuf->b_p_vts_array; in ex_retab()
1773 curbuf->b_p_vts_array = new_vts_array; in ex_retab()
1780 curbuf->b_p_ts = tabstop_first(new_vts_array); in ex_retab()
1786 curbuf->b_p_ts = new_ts; in ex_retab()
1821 inde_copy = vim_strsave(curbuf->b_p_inde); in get_expr_indent()
1865 char_u *word = *curbuf->b_p_lw != NUL ? curbuf->b_p_lw : p_lispwords; in lisp_match()
2104 if (curbuf->b_p_lisp && curbuf->b_p_ai) in fix_indent()
2130 if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count) in f_indent()
2151 if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count) in f_lispindent()