Lines Matching refs:curbuf
30 return (vim_strchr(curbuf->b_p_fo, x) != NULL); in has_format_option()
68 if (!curbuf->b_p_ai && !(State & VREPLACE_FLAG)) in internal_format()
685 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) in auto_format()
688 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in auto_format()
768 textwidth = curbuf->b_p_tw; in comp_textwidth()
769 if (textwidth == 0 && curbuf->b_p_wm) in comp_textwidth()
773 textwidth = curwin->w_width - curbuf->b_p_wm; in comp_textwidth()
807 long old_line_count = curbuf->b_ml.ml_line_count; in op_format()
824 curbuf->b_op_start = oap->start; in op_format()
836 if (oap->end_adjusted && curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) in op_format()
839 old_line_count = curbuf->b_ml.ml_line_count - old_line_count; in op_format()
844 curbuf->b_op_end = curwin->w_cursor; in op_format()
906 fex = vim_strsave(curbuf->b_p_fex); in fex_format()
995 if (count == 1 || curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count) in format_lines()
1027 && curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) in format_lines()
1062 if (curwin->w_cursor.lnum >= curbuf->b_ml.ml_line_count in format_lines()
1079 if (curbuf->b_p_lisp) in format_lines()
1089 *curbuf->b_p_inde != NUL ? get_expr_indent() : in format_lines()