Home
last modified time | relevance | path

Searched refs:topline (Results 1 – 20 of 20) sorted by relevance

/vim-8.2.3635/src/
H A Dmove.c2168 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()
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()
2333 if (hasFolding(topline, NULL, &topline)) in cursor_correct()
2340 if (topline < botline) in cursor_correct()
2343 ++topline; in cursor_correct()
[all …]
H A Dex_docmd.c7099 long topline; in ex_syncbind() local
7110 topline = curwin->w_topline; in ex_syncbind()
7116 if (topline > y) in ex_syncbind()
7117 topline = y; in ex_syncbind()
7120 if (topline < 1) in ex_syncbind()
7121 topline = 1; in ex_syncbind()
7125 topline = 1; in ex_syncbind()
7137 y = topline - curwin->w_topline; in ex_syncbind()
7142 curwin->w_scbind_pos = topline; in ex_syncbind()
H A Dex_cmds.c2512 linenr_T topline = 0; in do_ecmd() local
3019 topline = curwin->w_topline; in do_ecmd()
3079 if (curwin->w_topline == topline) in do_ecmd()
3080 topline = 0; in do_ecmd()
3187 if (topline == 0 && command == NULL) in do_ecmd()
H A Dnormal.c2136 long topline; in check_scrollbind() local
2172 topline = curwin->w_scbind_pos; 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()
2175 if (topline < 1) in check_scrollbind()
2176 topline = 1; in check_scrollbind()
2178 y = topline - curwin->w_topline; in check_scrollbind()
/vim-8.2.3635/src/testdir/
H A Dtest_window_cmd.vim723 call assert_equal(lnum, wininfo[0].topline)
724 call assert_equal(lnum, wininfo[1].topline)
763 call assert_equal(info.topline + 1, getcurpos()[1])
781 exe "normal " . (info.topline + 1) . "G"
790 call assert_equal(lnum, info.topline)
827 call assert_equal(info.topline + 1, getcurpos()[1])
849 call assert_equal(1, info1.topline)
850 call assert_equal(1, info2.topline)
859 call assert_equal(1, info1.topline)
864 call assert_equal(1, info1.topline)
H A Dtest_termcodes.vim482 call assert_equal(10, winsaveview().topline, msg)
487 call assert_equal(10, winsaveview().topline, msg)
493 call assert_equal(10, winsaveview().topline, msg)
499 call assert_equal(11, winsaveview().topline, msg)
503 call assert_equal(13, winsaveview().topline, msg)
508 call assert_equal(14, winsaveview().topline, msg)
513 call assert_equal(14, winsaveview().topline, msg)
517 call assert_equal(14, winsaveview().topline, msg)
523 call assert_equal(13, winsaveview().topline, msg)
531 call assert_equal(8, winsaveview().topline, msg)
[all …]
H A Dtest_normal.vim673 call assert_equal(100, winsaveview()['topline'])
680 call assert_equal(21, winsaveview()['topline'])
710 call assert_equal(17, winsaveview()['topline'])
718 call assert_equal(17, winsaveview()['topline'])
726 call assert_equal(21, winsaveview()['topline'])
733 call assert_equal(21, winsaveview()['topline'])
740 call assert_equal(100, winsaveview()['topline'])
746 call assert_equal(100, winsaveview()['topline'])
753 call assert_equal(12, winsaveview()['topline'])
759 call assert_equal(1, winsaveview()['topline'])
[all …]
H A Dtest_autocmd.vim2157 " The topline may change one line in a large window.
2159 call assert_inrange(g:wsv2.topline - 1, g:wsv2.topline + 1, winsaveview().topline)
2163 call assert_equal(g:wsv1.topline, winsaveview().topline)
2175 call assert_equal(1, winsaveview().topline)
2179 call assert_equal(g:wsv1.topline, winsaveview().topline)
H A Dtest_matchadd_conceal.vim348 " not successful and no real topline change happens. The invalidation would
H A Dtest_options.vim1182 \ 'topline':3, 'coladd':0, 'skipcol':0, 'curswant':0},
1189 \ 'topline':5, 'coladd':0, 'skipcol':0, 'curswant':0},
H A Dtest_search.vim254 …call assert_equal({'lnum': 10, 'leftcol': 0, 'col': 4, 'topfill': 0, 'topline': 6, 'coladd': 0, 's…
270 …"call assert_equal({'lnum': 1, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 's…
H A Dtest_edit.vim529 call assert_equal(30, winsaveview()['topline'])
533 call assert_equal(21, winsaveview()['topline'])
H A Dtest_popupwin.vim526 call assert_equal(3, getwininfo(winid)[0].topline)
/vim-8.2.3635/runtime/doc/
H A Dif_tcl.txt375 set topline [$buf get top]
H A Dversion6.txt2198 because topline is different. Added set_mouse_topline().
4353 Solution: Don't use 'scrolloff' when limiting the topline for scroll
4526 Solution: When redrawing the topline don't scroll twice.
5116 Solution: Restore the topline of the window.
6833 Solution: Correct the topline by putting it at the start of the fold.
10355 Solution: Update the topline before going to the next window.
H A Dversion5.txt4457 When BufLoad or BufEnter autocommands change the topline of the buffer in the
4459 the cursor halfway if the autocommands didn't change the topline.
5656 Solution: Save and restore the cursor and topline for the current window
H A Dversion8.txt2314 Solution: Change setting the topline. (Nobuhiro Takasaki)
2346 Problem: Fixes for computation of topline not tested.
3404 Problem: When winrestview() has a negative "topline" value there are
17766 Solution: Clear valid flags when setting the cursor. Set the topline when
17929 Solution: Handle a zero topline and botline. (closes #1613)
20271 Problem: When job in terminal window ends topline may be wrong.
20272 Solution: When the job ends adjust topline so that the active part of the
31973 Solution: Always set topline, also when window is one line only.
34189 Solution: Do restore fraction if topline is not one.
36870 Solution: Update topline. (partly by Christian Brabandt, closes #4718)
[all …]
H A Dtodo.txt5751 of the window, restore the old topline (or relative position) from when
6093 - When doing CTRL-^, redraw buffer with the same topline. (Demirel) Store
H A Dversion7.txt3638 Solution: Set the window topline properly.
7661 Solution: Don't recompute topline when above 'scrolloff' from the bottom.
17945 Solution: Store the topline after updating scroll binding. Add a test.
H A Deval.txt6377 topline first displayed buffer line
12180 topline first line in the window