Lines Matching refs:topline
2168 linenr_T topline; in scroll_cursor_halfway() local
2195 topline = loff.lnum; in scroll_cursor_halfway()
2196 while (topline > 1) in scroll_cursor_halfway()
2226 topline = loff.lnum; in scroll_cursor_halfway()
2233 if (!hasFolding(topline, &curwin->w_topline, NULL)) in scroll_cursor_halfway()
2235 curwin->w_topline = topline; in scroll_cursor_halfway()
2256 linenr_T topline; in cursor_correct() local
2311 topline = curwin->w_topline; in cursor_correct()
2318 while ((above < above_wanted || below < below_wanted) && topline < botline) in cursor_correct()
2333 if (hasFolding(topline, NULL, &topline)) in cursor_correct()
2337 above += PLINES_NOFILL(topline); in cursor_correct()
2340 if (topline < botline) in cursor_correct()
2341 above += diff_check_fill(curwin, topline + 1); in cursor_correct()
2343 ++topline; in cursor_correct()
2346 if (topline == botline || botline == 0) in cursor_correct()
2347 curwin->w_cursor.lnum = topline; in cursor_correct()
2348 else if (topline > botline) in cursor_correct()
2352 if (cln < topline && curwin->w_topline > 1) in cursor_correct()
2354 curwin->w_cursor.lnum = topline; in cursor_correct()