Lines Matching refs:curbuf

212 	curbuf->b_op_start = oap->start;  in op_shift()
213 curbuf->b_op_end.lnum = oap->end.lnum; in op_shift()
214 curbuf->b_op_end.col = (colnr_T)STRLEN(ml_get(oap->end.lnum)); in op_shift()
215 if (curbuf->b_op_end.col > 0) in op_shift()
216 --curbuf->b_op_end.col; in op_shift()
233 int sw_val = (int)get_sw_value_indent(curbuf); in shift_line()
284 int sw_val = (int)get_sw_value_indent(curbuf); in shift_block()
285 int ts_val = (int)curbuf->b_p_ts; in shift_block()
345 if (!curbuf->b_p_et) in shift_block()
347 ts_val, curbuf->b_p_vts_array, &i, &j); in shift_block()
351 if (!curbuf->b_p_et) in shift_block()
591 curbuf->b_op_end.lnum = oap->end.lnum; in block_insert()
592 curbuf->b_op_end.col = offset; in block_insert()
614 linenr_T old_lcount = curbuf->b_ml.ml_line_count; in op_delete()
617 if (curbuf->b_ml.ml_flags & ML_EMPTY) // nothing to do in op_delete()
624 if (!curbuf->b_p_ma) in op_delete()
801 if (curbuf->b_has_textprop && n != 0) in op_delete()
827 if (curbuf->b_p_ai) // don't delete indent in op_delete()
951 msgmore(curbuf->b_ml.ml_line_count - old_lcount); in op_delete()
958 curbuf->b_op_end.lnum = oap->end.lnum; in op_delete()
959 curbuf->b_op_end.col = oap->start.col; in op_delete()
962 curbuf->b_op_end = oap->start; in op_delete()
963 curbuf->b_op_start = oap->start; in op_delete()
1015 if ((curbuf->b_ml.ml_flags & ML_EMPTY ) || oap->empty) in op_replace()
1230 curbuf->b_op_start = oap->start; in op_replace()
1231 curbuf->b_op_end = oap->end; in op_replace()
1268 char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE); in op_tilde()
1270 netbeans_removed(curbuf, pos.lnum, bd.textcol, in op_tilde()
1272 netbeans_inserted(curbuf, pos.lnum, bd.textcol, in op_tilde()
1318 ptr = ml_get_buf(curbuf, pos.lnum, FALSE); in op_tilde()
1320 netbeans_removed(curbuf, pos.lnum, pos.col, (long)count); in op_tilde()
1321 netbeans_inserted(curbuf, pos.lnum, pos.col, in op_tilde()
1326 ptr = ml_get_buf(curbuf, pos.lnum, FALSE); in op_tilde()
1328 netbeans_removed(curbuf, pos.lnum, pos.col, (long)count); in op_tilde()
1329 netbeans_inserted(curbuf, pos.lnum, pos.col, in op_tilde()
1343 curbuf->b_op_start = oap->start; in op_tilde()
1344 curbuf->b_op_end = oap->end; in op_tilde()
1547 if (t1.lnum == curbuf->b_op_start_orig.lnum in op_insert()
1548 && LT_POS(curbuf->b_op_start_orig, t1)) in op_insert()
1549 oap->start = curbuf->b_op_start_orig; in op_insert()
1567 if (curbuf->b_op_start.col > ind_pre && ind_post > ind_pre) in op_insert()
1577 if (oap->start.lnum == curbuf->b_op_start_orig.lnum in op_insert()
1580 int t = getviscol2(curbuf->b_op_start_orig.col, in op_insert()
1581 curbuf->b_op_start_orig.coladd); in op_insert()
1587 != curbuf->b_op_start_orig.col in op_insert()
1588 + curbuf->b_op_start_orig.coladd) in op_insert()
1590 oap->start.col = curbuf->b_op_start_orig.col; in op_insert()
1596 >= curbuf->b_op_start_orig.col in op_insert()
1597 + curbuf->b_op_start_orig.coladd) in op_insert()
1599 oap->start.col = curbuf->b_op_start_orig.col; in op_insert()
1705 if (!p_paste && curbuf->b_p_si in op_change()
1707 && !curbuf->b_p_cin in op_change()
1716 if (curbuf->b_ml.ml_flags & ML_EMPTY) in op_change()
2420 startpos = curbuf->b_op_start; in op_addsub()
2429 netbeans_removed(curbuf, pos.lnum, pos.col, (long)length); in op_addsub()
2430 ptr = ml_get_buf(curbuf, pos.lnum, FALSE); in op_addsub()
2431 netbeans_inserted(curbuf, pos.lnum, pos.col, in op_addsub()
2452 curbuf->b_op_start = startpos; in op_addsub()
2500 do_hex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); // "heX" in do_addsub()
2501 do_oct = (vim_strchr(curbuf->b_p_nf, 'o') != NULL); // "Octal" in do_addsub()
2502 do_bin = (vim_strchr(curbuf->b_p_nf, 'b') != NULL); // "Bin" in do_addsub()
2503 do_alpha = (vim_strchr(curbuf->b_p_nf, 'p') != NULL); // "alPha" in do_addsub()
2504 do_unsigned = (vim_strchr(curbuf->b_p_nf, 'u') != NULL); // "Unsigned" in do_addsub()
2703 maxlen = (curbuf->b_visual.vi_curswant == MAXCOL in do_addsub()
2901 curbuf->b_op_start = startpos; in do_addsub()
2902 curbuf->b_op_end = endpos; in do_addsub()
2903 if (curbuf->b_op_end.col > 0) in do_addsub()
2904 --curbuf->b_op_end.col; in do_addsub()
3011 if (curbuf->b_ml.ml_flags & ML_EMPTY) in cursor_pos_info()
3021 if (get_fileformat(curbuf) == EOL_DOS) in cursor_pos_info()
3073 for (lnum = 1; lnum <= curbuf->b_ml.ml_line_count; ++lnum) in cursor_pos_info()
3120 if (lnum == curbuf->b_ml.ml_line_count in cursor_pos_info()
3121 && !curbuf->b_p_eol in cursor_pos_info()
3122 && (curbuf->b_p_bin || !curbuf->b_p_fixeol) in cursor_pos_info()
3148 if (!curbuf->b_p_eol && (curbuf->b_p_bin || !curbuf->b_p_fixeol)) in cursor_pos_info()
3170 (long)curbuf->b_ml.ml_line_count, in cursor_pos_info()
3179 (long)curbuf->b_ml.ml_line_count, in cursor_pos_info()
3202 (long)curbuf->b_ml.ml_line_count, in cursor_pos_info()
3210 (long)curbuf->b_ml.ml_line_count, in cursor_pos_info()
3271 else if (oap->end.lnum == curbuf->b_ml.ml_line_count) in op_colon()
3296 if (*curbuf->b_p_fp != NUL) in op_colon()
3297 stuffReadbuff(curbuf->b_p_fp); in op_colon()
3341 pos_T orig_start = curbuf->b_op_start; in op_function()
3342 pos_T orig_end = curbuf->b_op_end; in op_function()
3350 curbuf->b_op_start = oap->start; in op_function()
3351 curbuf->b_op_end = oap->end; in op_function()
3354 decl(&curbuf->b_op_end); in op_function()
3379 curbuf->b_op_start = orig_start; in op_function()
3380 curbuf->b_op_end = orig_end; in op_function()
3589 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) in do_pending_operator()
3590 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in do_pending_operator()
3622 curbuf->b_visual.vi_start = VIsual; in do_pending_operator()
3623 curbuf->b_visual.vi_end = curwin->w_cursor; in do_pending_operator()
3624 curbuf->b_visual.vi_mode = VIsual_mode; in do_pending_operator()
3626 curbuf->b_visual.vi_curswant = curwin->w_curswant; in do_pending_operator()
3628 curbuf->b_visual_mode_eval = VIsual_mode; in do_pending_operator()
3807 && oap->end.lnum < curbuf->b_ml.ml_line_count) in do_pending_operator()
3871 if (oap->is_VIsual && (oap->empty || !curbuf->b_p_ma in do_pending_operator()
3927 curbuf->b_ml.ml_line_count) in do_pending_operator()
4021 if (curbuf->b_p_lisp) in do_pending_operator()
4030 *curbuf->b_p_inde != NUL ? get_expr_indent : in do_pending_operator()
4057 if (*curbuf->b_p_fex != NUL) in do_pending_operator()
4062 if (*p_fp != NUL || *curbuf->b_p_fp != NUL) in do_pending_operator()