Lines Matching refs:curbuf
884 if (lang && curbuf->b_p_iminsert == B_IMODE_LMAP) in normal_cmd()
898 if (lang && curbuf->b_p_iminsert == B_IMODE_IM) in normal_cmd()
934 if (curbuf->b_p_iminsert != B_IMODE_LMAP) in normal_cmd()
935 im_save_status(&curbuf->b_p_iminsert); in normal_cmd()
1264 if (term_job_running(curbuf->b_term)) in normal_cmd()
1396 curbuf->b_visual.vi_mode = VIsual_mode; in end_visual_mode_keep_button()
1397 curbuf->b_visual.vi_start = VIsual; in end_visual_mode_keep_button()
1398 curbuf->b_visual.vi_end = curwin->w_cursor; in end_visual_mode_keep_button()
1399 curbuf->b_visual.vi_curswant = curwin->w_curswant; in end_visual_mode_keep_button()
1401 curbuf->b_visual_mode_eval = VIsual_mode; in end_visual_mode_keep_button()
1444 curbuf->b_visual.vi_mode = VIsual_mode_orig; in restore_visual_mode()
2132 buf_T *old_curbuf = curbuf; in check_scrollbind()
2154 curbuf = curwin->w_buffer; in check_scrollbind()
2173 if (topline > curbuf->b_ml.ml_line_count) in check_scrollbind()
2174 topline = curbuf->b_ml.ml_line_count; in check_scrollbind()
2207 curbuf = old_curbuf; in check_scrollbind()
2256 if (bt_prompt(curbuf) && !prompt_curpos_editable()) in nv_addsub()
2433 t = searchit(curwin, curbuf, &curwin->w_cursor, NULL, FORWARD, in find_decl()
2640 if (curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count) in nv_screengo()
2862 if (cap->count0 > curbuf->b_ml.ml_line_count) in nv_zet()
2863 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in nv_zet()
2877 if (curwin->w_botline > curbuf->b_ml.ml_line_count) in nv_zet()
2878 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in nv_zet()
3050 deleteFold((linenr_T)1, curbuf->b_ml.ml_line_count, in nv_zet()
3441 && (cap->oap->start.lnum > curbuf->b_ml.ml_line_count in nv_colon()
3649 kp = (*curbuf->b_p_kp == NUL ? p_kp : curbuf->b_p_kp); in nv_ident()
3743 if (curbuf->b_help) in nv_ident()
3793 if (curbuf->b_help) in nv_ident()
3956 for (n = 0; curwin->w_topline + n < curbuf->b_ml.ml_line_count; ++n) in nv_scroll()
3997 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) in nv_scroll()
3998 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in nv_scroll()
4053 && curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) in nv_right()
4219 else if (bt_quickfix(curbuf) && cap->cmdchar == CAR) in nv_down()
4232 if (bt_prompt(curbuf) && cap->cmdchar == CAR in nv_down()
4233 && curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count) in nv_down()
4282 if (curbufIsChanged() && curbuf->b_nwindows <= 1 && !buf_hide(curbuf)) in nv_gotofile()
4283 (void)autowrite(curbuf, FALSE); in nv_gotofile()
4286 buf_hide(curbuf) ? ECMD_HIDE : 0, curwin) == OK in nv_gotofile()
4822 if (curbuf->b_ml.ml_line_count >= 21474836) in nv_percent()
4823 curwin->w_cursor.lnum = (curbuf->b_ml.ml_line_count + 99L) in nv_percent()
4826 curwin->w_cursor.lnum = (curbuf->b_ml.ml_line_count * in nv_percent()
4830 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) in nv_percent()
4831 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in nv_percent()
4948 if (bt_prompt(curbuf)) in nv_kundo()
4972 if (bt_prompt(curbuf) && !prompt_curpos_editable()) in nv_replace()
5046 if (had_ctrl_v != Ctrl_V && cap->nchar == '\t' && (curbuf->b_p_et || p_sta)) in nv_replace()
5081 curbuf->b_op_start = curwin->w_cursor; in nv_replace()
5133 ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); in nv_replace()
5139 ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); in nv_replace()
5151 netbeans_removed(curbuf, curwin->w_cursor.lnum, start, in nv_replace()
5153 netbeans_inserted(curbuf, curwin->w_cursor.lnum, start, in nv_replace()
5167 curbuf->b_op_end = curwin->w_cursor; in nv_replace()
5238 if (!curbuf->b_p_ma) in nv_Replace()
5263 if (!curbuf->b_p_ma) in nv_vreplace()
5318 && curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) in n_swapchar()
5327 netbeans_removed(curbuf, pos.lnum, pos.col, in n_swapchar()
5329 netbeans_inserted(curbuf, pos.lnum, pos.col, in n_swapchar()
5354 netbeans_removed(curbuf, pos.lnum, pos.col, (long)count); in n_swapchar()
5355 netbeans_inserted(curbuf, pos.lnum, pos.col, &ptr[pos.col], count); in n_swapchar()
5366 curbuf->b_op_start = startpos; in n_swapchar()
5367 curbuf->b_op_end = curwin->w_cursor; in n_swapchar()
5368 if (curbuf->b_op_end.col > 0) in n_swapchar()
5369 --curbuf->b_op_end.col; in n_swapchar()
5437 if (bt_prompt(curbuf) && !prompt_curpos_editable()) in nv_subst()
5592 if (curbuf->b_changelistlen == 0) in nv_pcmark()
5912 if ( curbuf->b_visual.vi_start.lnum == 0 in nv_g_cmd()
5913 || curbuf->b_visual.vi_start.lnum > curbuf->b_ml.ml_line_count in nv_g_cmd()
5914 || curbuf->b_visual.vi_end.lnum == 0) in nv_g_cmd()
5922 VIsual_mode = curbuf->b_visual.vi_mode; in nv_g_cmd()
5923 curbuf->b_visual.vi_mode = i; in nv_g_cmd()
5925 curbuf->b_visual_mode_eval = i; in nv_g_cmd()
5928 curwin->w_curswant = curbuf->b_visual.vi_curswant; in nv_g_cmd()
5929 curbuf->b_visual.vi_curswant = i; in nv_g_cmd()
5931 tpos = curbuf->b_visual.vi_end; in nv_g_cmd()
5932 curbuf->b_visual.vi_end = curwin->w_cursor; in nv_g_cmd()
5933 curwin->w_cursor = curbuf->b_visual.vi_start; in nv_g_cmd()
5934 curbuf->b_visual.vi_start = VIsual; in nv_g_cmd()
5938 VIsual_mode = curbuf->b_visual.vi_mode; in nv_g_cmd()
5939 curwin->w_curswant = curbuf->b_visual.vi_curswant; in nv_g_cmd()
5940 tpos = curbuf->b_visual.vi_end; in nv_g_cmd()
5941 curwin->w_cursor = curbuf->b_visual.vi_start; in nv_g_cmd()
6244 if (curbuf->b_last_insert.lnum != 0) in nv_g_cmd()
6246 curwin->w_cursor = curbuf->b_last_insert; in nv_g_cmd()
6563 if (bt_prompt(curbuf) && !prompt_curpos_editable()) in nv_tilde()
6586 if (bt_prompt(curbuf) && op_is_change(op_type) && !prompt_curpos_editable()) in nv_operator()
6877 mb_adjustpos(curbuf, pp); in unadjust_for_sel()
6916 lnum = curbuf->b_ml.ml_line_count; in nv_goto()
6927 else if (lnum > curbuf->b_ml.ml_line_count) in nv_goto()
6928 lnum = curbuf->b_ml.ml_line_count; in nv_goto()
7102 else if (!curbuf->b_p_ma && !p_im) in nv_edit()
7240 mps_save = curbuf->b_p_mps; in nv_object()
7241 curbuf->b_p_mps = (char_u *)"(:),{:},[:],<:>"; in nv_object()
7301 curbuf->b_p_mps = mps_save; in nv_object()
7374 && curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count)) in nv_halfpage()
7393 curbuf->b_ml.ml_line_count) in nv_join()
7401 cap->count0 = curbuf->b_ml.ml_line_count in nv_join()
7448 else if (bt_prompt(curbuf) && !prompt_curpos_editable()) in nv_put_opt()
7502 empty = (curbuf->b_ml.ml_flags & ML_EMPTY); in nv_put_opt()
7527 && curwin->w_cursor.col < curbuf->b_op_start.col) in nv_put_opt()
7529 && curwin->w_cursor.lnum < curbuf->b_op_start.lnum)) in nv_put_opt()
7546 curbuf->b_visual.vi_start = curbuf->b_op_start; in nv_put_opt()
7547 curbuf->b_visual.vi_end = curbuf->b_op_end; in nv_put_opt()
7550 inc(&curbuf->b_visual.vi_end); in nv_put_opt()
7555 if (empty && *ml_get(curbuf->b_ml.ml_line_count) == NUL) in nv_put_opt()
7557 ml_delete_flags(curbuf->b_ml.ml_line_count, ML_DEL_MESSAGE); in nv_put_opt()
7558 deleted_lines(curbuf->b_ml.ml_line_count + 1, 1); in nv_put_opt()
7562 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) in nv_put_opt()
7564 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in nv_put_opt()
7590 else if (bt_prompt(curbuf)) in nv_open()
7621 apply_autocmds(EVENT_CURSORHOLD, NULL, NULL, FALSE, curbuf); in nv_cursorhold()