| /vim-8.2.3635/src/ |
| H A D | textobject.c | 37 pos = curwin->w_cursor; in findsent() 154 curwin->w_cursor = pos; in findsent() 244 curwin->w_cursor.col = 0; in findpar() 377 if (hasFolding(curwin->w_cursor.lnum, NULL, &curwin->w_cursor.lnum)) in fwd_word() 442 if (hasFolding(curwin->w_cursor.lnum, &curwin->w_cursor.lnum, NULL)) in bck_word() 509 if (hasFolding(curwin->w_cursor.lnum, NULL, &curwin->w_cursor.lnum)) in end_word() 595 if (curwin->w_cursor.col == 0 && LINEEMPTY(curwin->w_cursor.lnum)) in bckend_word() 731 decl(&curwin->w_cursor); in current_word() 950 ++curwin->w_cursor.col; in current_sent() 983 decl(&curwin->w_cursor); in current_sent() [all …]
|
| H A D | textformat.c | 229 col = curwin->w_cursor.col; in internal_format() 240 curwin->w_cursor.col = col; in internal_format() 415 curwin->w_cursor.col = len; in internal_format() 634 pos = curwin->w_cursor; in auto_format() 656 curwin->w_cursor = pos; in auto_format() 659 curwin->w_cursor = pos; in auto_format() 673 --curwin->w_cursor.lnum; in auto_format() 837 ++curwin->w_cursor.lnum; in op_format() 1136 curwin->w_cursor.lnum++; in format_lines() 1137 curwin->w_cursor.col = 0; in format_lines() [all …]
|
| H A D | cindent.c | 355 pos = curwin->w_cursor; in find_line_comment() 1140 curwin->w_cursor.col = i; in find_last_paren() 1303 curwin->w_cursor.col = 0; in cin_iswhileofdo() 1395 curwin->w_cursor.col = i; in cin_iswhileofdo_end() 1957 curwin->w_cursor.lnum--; in find_match() 1958 curwin->w_cursor.col = 0; in find_match() 2731 curwin->w_cursor.lnum--; in get_c_indent() 3299 curwin->w_cursor.col = in get_c_indent() 3662 curwin->w_cursor.lnum--; in get_c_indent() 3663 curwin->w_cursor.col = 0; in get_c_indent() [all …]
|
| H A D | edit.c | 372 ++curwin->w_cursor.col; in edit() 1815 curwin->w_cursor.col--; in backspace_until_column() 2634 ++curwin->w_cursor.col; in beginline() 3244 changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); in replace_do_bs() 3252 adjust_prop_columns(curwin->w_cursor.lnum, curwin->w_cursor.col, in replace_do_bs() 3875 --curwin->w_cursor.col; in ins_shift() 3985 ((curwin->w_cursor.lnum == 1 && curwin->w_cursor.col == 0) in ins_bs() 4617 if (curwin->w_cursor.lnum > 1 || curwin->w_cursor.col > 0) in ins_s_left() 4653 ++curwin->w_cursor.col; in ins_right() 4669 ++curwin->w_cursor.lnum; in ins_right() [all …]
|
| H A D | change.c | 598 else if (wp->w_cursor.lnum == lnum && wp->w_cursor.col >= col) in changed_common() 1298 curwin->w_cursor.col -= in del_bytes() 2098 --curwin->w_cursor.lnum; in open_line() 2118 adjust_props_for_split(curwin->w_cursor.lnum, curwin->w_cursor.lnum, in open_line() 2125 curwin->w_cursor.lnum++; in open_line() 2135 curwin->w_cursor.lnum--; in open_line() 2145 ++curwin->w_cursor.lnum; in open_line() 2205 changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col, in open_line() 2216 changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); in open_line() 2224 changed_lines(curwin->w_cursor.lnum, 0, curwin->w_cursor.lnum, 1L); in open_line() [all …]
|
| H A D | normal.c | 2450 curwin->w_cursor = *pos; in find_decl() 2611 --curwin->w_cursor.lnum; in nv_screengo() 2645 curwin->w_cursor.lnum++; in nv_screengo() 4721 pos = &curwin->w_cursor; in nv_brackets() 5144 ++curwin->w_cursor.col; in nv_replace() 5388 curwin->w_cursor = *pos; in nv_cursormark() 6127 if (curwin->w_cursor.col > 0 && ptr[curwin->w_cursor.col] == NUL) in nv_g_cmd() 6128 --curwin->w_cursor.col; in nv_g_cmd() 6133 --curwin->w_cursor.col; in nv_g_cmd() 6252 curwin->w_cursor.coladd += curwin->w_cursor.col - i; in nv_g_cmd() [all …]
|
| H A D | ops.c | 166 ++curwin->w_cursor.lnum; in op_shift() 807 changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col, in op_delete() 821 ++curwin->w_cursor.lnum; in op_delete() 1042 for ( ; curwin->w_cursor.lnum <= oap->end.lnum; ++curwin->w_cursor.lnum) in op_replace() 1407 curwin->w_cursor = *pos; in swapchar() 1411 curwin->w_cursor = sp; in swapchar() 1494 --curwin->w_cursor.col; in op_insert() 1516 ++curwin->w_cursor.col; in op_insert() 1724 if ((l > curwin->w_cursor.col) && !LINEEMPTY(curwin->w_cursor.lnum) in op_change() 2351 pos = curwin->w_cursor; in op_addsub() [all …]
|
| H A D | move.c | 60 lnum = wp->w_cursor.lnum; in comp_botline() 89 lnum <= wp->w_cursor.lnum && last >= wp->w_cursor.lnum in comp_botline() 91 lnum == wp->w_cursor.lnum in comp_botline() 746 if (lnum > wp->w_cursor.lnum) in curs_rows() 1398 curwin->w_cursor.lnum = 1; in scrolldown() 2740 ++curwin->w_cursor.lnum; in halfpage() 2792 curwin->w_cursor.lnum += n; in halfpage() 2830 --curwin->w_cursor.lnum; in halfpage() 2841 curwin->w_cursor.lnum = 1; in halfpage() 2855 curwin->w_cursor.lnum -= n; in halfpage() [all …]
|
| H A D | indent.c | 343 curwin->w_cursor = *pos; in get_sw_value_pos() 355 pos_T pos = curwin->w_cursor; in get_sw_value_indent() 1070 ++curwin->w_cursor.lnum; in op_reindent() 1157 curwin->w_cursor.col = i; in ins_try_si() 1159 curwin->w_cursor = *pos; in ins_try_si() 1174 old_pos = curwin->w_cursor; in ins_try_si() 1186 curwin->w_cursor = old_pos; in ins_try_si() 1347 curwin->w_cursor.col = 0; in change_indent() 1908 curwin->w_cursor.col = 0; in get_lisp_indent() 2149 pos = curwin->w_cursor; in f_lispindent() [all …]
|
| H A D | register.c | 1606 if (u_save(curwin->w_cursor.lnum, curwin->w_cursor.lnum + 1) == FAIL) in do_put() 1798 ++curwin->w_cursor.col; in do_put() 1812 ++curwin->w_cursor.col; in do_put() 1816 curwin->w_cursor.col--; in do_put() 1818 curwin->w_cursor.col++; in do_put() 1821 curwin->w_cursor.coladd = 0; in do_put() 1934 ++curwin->w_cursor.lnum; in do_put() 1954 curwin->w_cursor.col++; in do_put() 1990 ++curwin->w_cursor.col; in do_put() 2086 ++curwin->w_cursor.col; in do_put() [all …]
|
| H A D | mouse.c | 764 if (curwin->w_cursor.lnum >= in do_mouse() 772 VIsual = curwin->w_cursor; in do_mouse() 808 if (curwin->w_cursor.col < in do_mouse() 925 VIsual = curwin->w_cursor; in do_mouse() 962 end_visual = curwin->w_cursor; in do_mouse() 973 curwin->w_cursor = *pos; in do_mouse() 981 ++curwin->w_cursor.col; in do_mouse() 999 curwin->w_cursor.col += in do_mouse() 1040 tpos = curwin->w_cursor; in ins_mouse() 1079 tpos = curwin->w_cursor; in ins_mousescroll() [all …]
|
| H A D | ex_cmds.c | 188 curwin->w_cursor.lnum <= eap->line2; ++curwin->w_cursor.lnum) in ex_align() 797 curwin->w_cursor.lnum = dest; in do_move() 846 curwin->w_cursor.lnum = n; in ex_copy() 865 ++curwin->w_cursor.lnum; in ex_copy() 1087 curwin->w_cursor.col = 0; in do_filter() 1117 curwin->w_cursor.lnum = line2; in do_filter() 3018 orig_pos = curwin->w_cursor; in do_ecmd() 3567 curwin->w_cursor.col = 0; in ex_z() 4207 curwin->w_cursor.col = 0; in ex_substitute() 4515 curwin->w_cursor.col = 0; in ex_substitute() [all …]
|
| H A D | misc2.c | 537 curwin->w_cursor.lnum = 1; in check_cursor_lnum() 557 colnr_T oldcoladd = win->w_cursor.col + win->w_cursor.coladd; in check_cursor_col_win() 562 win->w_cursor.col = 0; in check_cursor_col_win() 573 win->w_cursor.col = len; in check_cursor_col_win() 583 win->w_cursor.col = 0; in check_cursor_col_win() 589 win->w_cursor.coladd = 0; in check_cursor_col_win() 594 win->w_cursor.coladd = oldcoladd - win->w_cursor.col; in check_cursor_col_win() 599 if (win->w_cursor.col + 1 < len && win->w_cursor.coladd > 0) in check_cursor_col_win() 610 win->w_cursor.coladd = 0; in check_cursor_col_win() 632 if (curwin->w_cursor.col > 0 in adjust_cursor_col() [all …]
|
| H A D | drawline.c | 545 top = &curwin->w_cursor; in win_line() 552 bot = &curwin->w_cursor; in win_line() 630 && lnum >= curwin->w_cursor.lnum in win_line() 847 pos = wp->w_cursor; in win_line() 848 wp->w_cursor.lnum = lnum; in win_line() 849 wp->w_cursor.col = linecol; in win_line() 872 wp->w_cursor = pos; in win_line() 1923 && wp->w_cursor.lnum == lnum in win_line() 1924 && wp->w_cursor.col >= in win_line() 2247 && lnum == wp->w_cursor.lnum in win_line() [all …]
|
| H A D | mark.c | 63 if (pos == &curwin->w_cursor) in setmark_pos() 345 pos = curwin->w_cursor; in getmark_buf_fnum() 350 pos_copy = curwin->w_cursor; in getmark_buf_fnum() 353 curwin->w_cursor = pos; in getmark_buf_fnum() 361 pos = curwin->w_cursor; in getmark_buf_fnum() 365 pos_copy = curwin->w_cursor; in getmark_buf_fnum() 368 curwin->w_cursor = pos; in getmark_buf_fnum() 1162 if (win->w_cursor.lnum >= line1 && win->w_cursor.lnum <= line2) in mark_adjust_internal() 1167 win->w_cursor.lnum = 1; in mark_adjust_internal() 1170 win->w_cursor.col = 0; in mark_adjust_internal() [all …]
|
| H A D | insexpand.c | 1158 col = curwin->w_cursor.col; in ins_compl_show_pum() 1159 curwin->w_cursor.col = compl_col; in ins_compl_show_pum() 1161 curwin->w_cursor.col = col; in ins_compl_show_pum() 1583 p = line + curwin->w_cursor.col; in ins_compl_bs() 2080 int prev_col = curwin->w_cursor.col; in ins_compl_prep() 2287 pos = curwin->w_cursor; in expand_by_function() 2459 startcol = curwin->w_cursor.col; in set_completion() 3733 curs_col = curwin->w_cursor.col; in ins_complete() 3993 pos = curwin->w_cursor; in ins_complete() 4085 compl_col = curwin->w_cursor.col; in ins_complete() [all …]
|
| H A D | drawscreen.c | 736 : (long)(wp->w_cursor.lnum)); in win_redr_ruler() 797 wp->w_ru_cursor = wp->w_cursor; in win_redr_ruler() 1288 top = &curwin->w_cursor; in fold_line() 1295 bot = &curwin->w_cursor; in fold_line() 1374 && lnum <= curwin->w_cursor.lnum in fold_line() 1386 && wp->w_cursor.lnum >= lnum in fold_line() 1387 && wp->w_cursor.lnum <= lnume in fold_line() 1951 from = curwin->w_cursor.lnum; in win_update() 1957 to = curwin->w_cursor.lnum; in win_update() 1976 from = curwin->w_cursor.lnum; in win_update() [all …]
|
| H A D | ex_getln.c | 339 save_cursor = curwin->w_cursor; in do_incsearch_highlighting() 363 curwin->w_cursor = save_cursor; in do_incsearch_highlighting() 459 curwin->w_cursor.col = MAXCOL; in may_do_incsearch_highlighting() 465 curwin->w_cursor.col = 0; in may_do_incsearch_highlighting() 543 pos_T save_pos = curwin->w_cursor; in may_do_incsearch_highlighting() 546 set_search_match(&curwin->w_cursor); in may_do_incsearch_highlighting() 548 end_pos = curwin->w_cursor; in may_do_incsearch_highlighting() 550 curwin->w_cursor = save_pos; in may_do_incsearch_highlighting() 584 curwin->w_cursor = end_pos; in may_do_incsearch_highlighting() 703 curwin->w_cursor = is_state->match_end; in may_adjust_incsearch_highlighting() [all …]
|
| H A D | evalbuffer.c | 228 if (is_curbuf && lnum == curwin->w_cursor.lnum) in set_buffer_lines() 260 && wp->w_cursor.lnum > append_lnum) in set_buffer_lines() 261 wp->w_cursor.lnum += added; in set_buffer_lines() 568 if (wp->w_cursor.lnum > last) in f_deletebufline() 569 wp->w_cursor.lnum -= count; in f_deletebufline() 570 else if (wp->w_cursor.lnum> first) in f_deletebufline() 571 wp->w_cursor.lnum = first; in f_deletebufline() 572 if (wp->w_cursor.lnum > wp->w_buffer->b_ml.ml_line_count) in f_deletebufline() 573 wp->w_cursor.lnum = wp->w_buffer->b_ml.ml_line_count; in f_deletebufline() 603 dict_add_number(dict, "lnum", buf == curbuf ? curwin->w_cursor.lnum in get_buffer_info()
|
| H A D | popupwin.c | 121 wp->w_popup_lnum = curwin->w_cursor.lnum; in set_moved_values() 579 wp->w_topline = wp->w_cursor.lnum; in popup_show_curline() 588 while (wp->w_topline < wp->w_cursor.lnum in popup_show_curline() 960 wp->w_cursor.lnum = wp->w_firstline; in apply_options() 2403 old_lnum = wp->w_cursor.lnum; in f_popup_filter_menu() 2405 && wp->w_cursor.lnum > 1) in f_popup_filter_menu() 2406 --wp->w_cursor.lnum; in f_popup_filter_menu() 2409 ++wp->w_cursor.lnum; in f_popup_filter_menu() 2410 if (old_lnum != wp->w_cursor.lnum) in f_popup_filter_menu() 2426 res.vval.v_number = wp->w_cursor.lnum; in f_popup_filter_menu() [all …]
|
| H A D | buffer.c | 119 curwin->w_cursor.lnum = 1; in read_buffer() 120 curwin->w_cursor.col = 0; in read_buffer() 582 win->w_cursor.lnum == 1 ? 0 : win->w_cursor.lnum, in close_buffer() 583 win->w_cursor.col, TRUE); in close_buffer() 1815 curwin->w_cursor.col = 0; in enter_buffer() 2476 curwin->w_cursor.col = 0; in buflist_getfpos() 2481 curwin->w_cursor.coladd = 0; in buflist_getfpos() 3555 buflist_setfpos(curbuf, win, win->w_cursor.lnum, win->w_cursor.col, TRUE); in buflist_altfpos() 4179 lnum = wp->w_cursor.lnum; in build_stl_str_hl() 4183 wp->w_cursor.lnum = lnum; in build_stl_str_hl() [all …]
|
| H A D | search.c | 1658 curwin->w_cursor = pos; in do_search() 1813 col = curwin->w_cursor.col; in searchc() 1872 curwin->w_cursor.col = col; in searchc() 2107 pos = curwin->w_cursor; in findmatchlimit() 2831 save_cursor = curwin->w_cursor; in showmatch() 2977 orig_pos = pos = curwin->w_cursor; in current_search() 3030 curwin->w_cursor = orig_pos; in current_search() 3059 curwin->w_cursor = end_pos; in current_search() 3064 curwin->w_cursor = pos; in current_search() 3877 curwin->w_cursor.lnum = lnum; in find_pattern_in_path() [all …]
|
| H A D | spell.c | 1306 lnum = wp->w_cursor.lnum; in spell_move_to() 1356 && lnum == wp->w_cursor.lnum in spell_move_to() 1373 || lnum != wp->w_cursor.lnum in spell_move_to() 1374 || (lnum == wp->w_cursor.lnum in spell_move_to() 1378 > wp->w_cursor.col))) in spell_move_to() 1402 wp->w_cursor = found_pos; in spell_move_to() 1428 wp->w_cursor = found_pos; in spell_move_to() 2874 pos_T pos = curwin->w_cursor; in ex_spellrepall() 2897 curwin->w_cursor.lnum = 0; in ex_spellrepall() 2917 changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); in ex_spellrepall() [all …]
|
| H A D | ex_docmd.c | 2011 curwin->w_cursor.lnum = 1; in do_one_cmd() 2652 curwin->w_cursor.lnum = 1; in do_one_cmd() 2653 curwin->w_cursor.col = 0; in do_one_cmd() 4016 lnum = curwin->w_cursor.lnum; in default_address() 4242 curwin->w_cursor.lnum = in get_address() 4255 curwin->w_cursor.col = 0; in get_address() 4260 curwin->w_cursor = pos; in get_address() 4265 curwin->w_cursor = pos; in get_address() 7235 --curwin->w_cursor.lnum; in ex_read() 8466 curwin->w_cursor.col = 0; in ex_normal() [all …]
|
| H A D | undo.c | 238 (linenr_T)(curwin->w_cursor.lnum + 1))); in u_save_cursor() 2675 pos_T new_curpos = curwin->w_cursor; in u_undoredo() 2862 curwin->w_cursor = new_curpos; in u_undoredo() 2902 && curwin->w_cursor.lnum > 1) in u_undoredo() 2903 --curwin->w_cursor.lnum; in u_undoredo() 2912 curwin->w_cursor.coladd = 0; in u_undoredo() 2923 curwin->w_cursor.col = 0; in u_undoredo() 2924 curwin->w_cursor.coladd = 0; in u_undoredo() 3478 if (curwin->w_cursor.lnum == lnum) in u_saveline() 3479 curbuf->b_u_line_colnr = curwin->w_cursor.col; in u_saveline() [all …]
|