Lines Matching refs:w_cursor
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()
153 redrawWinline(wp, wp->w_cursor.lnum); in redraw_for_cursorline()
200 curwin->w_topline = curwin->w_cursor.lnum; in update_topline()
243 if (curwin->w_cursor.lnum < curwin->w_topline) in update_topline()
268 for (lnum = curwin->w_cursor.lnum; in update_topline()
280 n = curwin->w_topline + *so_ptr - curwin->w_cursor.lnum; in update_topline()
319 if (curwin->w_cursor.lnum < curwin->w_botline) in update_topline()
321 if (((long)curwin->w_cursor.lnum in update_topline()
334 loff.lnum = curwin->w_cursor.lnum; in update_topline()
372 for (lnum = curwin->w_cursor.lnum; in update_topline()
384 line_count = curwin->w_cursor.lnum - curwin->w_botline in update_topline()
413 if (curwin->w_cursor.lnum == curwin->w_topline) in update_topline()
444 if (curwin->w_cursor.lnum < curwin->w_topline + so in check_top_offset()
450 loff.lnum = curwin->w_cursor.lnum; in check_top_offset()
493 if (wp->w_cursor.lnum != wp->w_valid_cursor.lnum) in check_cursor_moved()
497 wp->w_valid_cursor = wp->w_cursor; in check_cursor_moved()
500 else if (wp->w_cursor.col != wp->w_valid_cursor.col in check_cursor_moved()
502 || wp->w_cursor.coladd != wp->w_valid_cursor.coladd) in check_cursor_moved()
505 wp->w_valid_cursor.col = wp->w_cursor.col; in check_cursor_moved()
507 wp->w_valid_cursor.coladd = wp->w_cursor.coladd; in check_cursor_moved()
701 for (lnum = wp->w_topline; lnum < wp->w_cursor.lnum; ++i) in curs_rows()
714 || wp->w_lines[i].wl_lastlnum < wp->w_cursor.lnum in curs_rows()
732 if (lnum > wp->w_cursor.lnum) in curs_rows()
746 if (lnum > wp->w_cursor.lnum) in curs_rows()
769 || wp->w_lines[i].wl_lnum != wp->w_cursor.lnum))) in curs_rows()
772 if (wp->w_cursor.lnum == wp->w_topline) in curs_rows()
773 wp->w_cline_height = plines_win_nofill(wp, wp->w_cursor.lnum, in curs_rows()
777 wp->w_cline_height = plines_win(wp, wp->w_cursor.lnum, TRUE); in curs_rows()
779 wp->w_cline_folded = hasFoldingWin(wp, wp->w_cursor.lnum, in curs_rows()
788 wp->w_cline_folded = hasFoldingWin(wp, wp->w_cursor.lnum, in curs_rows()
824 getvvcol(wp, &wp->w_cursor, NULL, &(wp->w_virtcol), NULL); in validate_virtcol_win()
843 if (curwin->w_cursor.lnum == curwin->w_topline) in validate_cheight()
844 curwin->w_cline_height = plines_nofill(curwin->w_cursor.lnum) in validate_cheight()
848 curwin->w_cline_height = plines(curwin->w_cursor.lnum); in validate_cheight()
850 curwin->w_cline_folded = hasFolding(curwin->w_cursor.lnum, NULL, NULL); in validate_cheight()
981 getvvcol(curwin, &curwin->w_cursor, in curs_columns()
1093 if (curwin->w_cursor.lnum == curwin->w_topline) in curs_columns()
1096 curwin->w_wrow += diff_check_fill(curwin, curwin->w_cursor.lnum); in curs_columns()
1112 (curwin, curwin->w_cursor.lnum, FALSE)) in curs_columns()
1115 && curwin->w_cursor.lnum == curwin->w_topline in curs_columns()
1131 p_lines = plines_win(curwin, curwin->w_cursor.lnum, FALSE); in curs_columns()
1374 if (curwin->w_cursor.lnum == curwin->w_topline) in scrolldown()
1391 while (wrow >= curwin->w_height && curwin->w_cursor.lnum > 1) in scrolldown()
1394 if (hasFolding(curwin->w_cursor.lnum, &first, NULL)) in scrolldown()
1398 curwin->w_cursor.lnum = 1; in scrolldown()
1400 curwin->w_cursor.lnum = first - 1; in scrolldown()
1404 wrow -= plines(curwin->w_cursor.lnum--); in scrolldown()
1491 if (curwin->w_cursor.lnum < curwin->w_topline) in scrollup()
1493 curwin->w_cursor.lnum = curwin->w_topline; in scrollup()
1808 if (curwin->w_cursor.lnum < curwin->w_topline) in scroll_cursor_top()
1812 if (hasFolding(curwin->w_cursor.lnum, &top, &bot)) in scroll_cursor_top()
1820 top = curwin->w_cursor.lnum - 1; in scroll_cursor_top()
1821 bot = curwin->w_cursor.lnum + 1; in scroll_cursor_top()
1829 extra += diff_check_fill(curwin, curwin->w_cursor.lnum); in scroll_cursor_top()
1889 if (curwin->w_topline > curwin->w_cursor.lnum) in scroll_cursor_top()
1890 curwin->w_topline = curwin->w_cursor.lnum; in scroll_cursor_top()
1970 cln = curwin->w_cursor.lnum; in scroll_cursor_bot()
2029 if (!hasFolding(curwin->w_cursor.lnum, &loff.lnum, &boff.lnum)) in scroll_cursor_bot()
2184 loff.lnum = boff.lnum = curwin->w_cursor.lnum; in scroll_cursor_halfway()
2296 cln = curwin->w_cursor.lnum; in cursor_correct()
2347 curwin->w_cursor.lnum = topline; in cursor_correct()
2349 curwin->w_cursor.lnum = botline; in cursor_correct()
2354 curwin->w_cursor.lnum = topline; in cursor_correct()
2360 curwin->w_cursor.lnum = botline; in cursor_correct()
2428 curwin->w_cursor.lnum = curwin->w_topline; in onepage()
2454 curwin->w_cursor.lnum = curwin->w_topline; in onepage()
2478 curwin->w_cursor.lnum = curwin->w_topline + p_window - 1; in onepage()
2479 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) in onepage()
2480 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; in onepage()
2505 curwin->w_cursor.lnum = loff.lnum; in onepage()
2567 curwin->w_cursor.lnum = curwin->w_botline - 1; in onepage()
2738 if (curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) in halfpage()
2740 ++curwin->w_cursor.lnum; in halfpage()
2783 && curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) in halfpage()
2785 (void)hasFolding(curwin->w_cursor.lnum, NULL, in halfpage()
2786 &curwin->w_cursor.lnum); in halfpage()
2787 ++curwin->w_cursor.lnum; in halfpage()
2792 curwin->w_cursor.lnum += n; in halfpage()
2828 if (curwin->w_cursor.lnum > 1) in halfpage()
2830 --curwin->w_cursor.lnum; in halfpage()
2840 if (curwin->w_cursor.lnum <= (linenr_T)n) in halfpage()
2841 curwin->w_cursor.lnum = 1; in halfpage()
2846 while (--n >= 0 && curwin->w_cursor.lnum > 1) in halfpage()
2848 --curwin->w_cursor.lnum; in halfpage()
2849 (void)hasFolding(curwin->w_cursor.lnum, in halfpage()
2850 &curwin->w_cursor.lnum, NULL); in halfpage()
2855 curwin->w_cursor.lnum -= n; in halfpage()
2873 linenr_T line = curwin->w_cursor.lnum; in do_check_cursorbind()
2874 colnr_T col = curwin->w_cursor.col; in do_check_cursorbind()
2875 colnr_T coladd = curwin->w_cursor.coladd; in do_check_cursorbind()
2896 curwin->w_cursor.lnum = in do_check_cursorbind()
2900 curwin->w_cursor.lnum = line; in do_check_cursorbind()
2901 curwin->w_cursor.col = col; in do_check_cursorbind()
2902 curwin->w_cursor.coladd = coladd; in do_check_cursorbind()