Mercurial > vim
view src/testdir/test_scroll_opt.vim @ 17964:6d4d3bce365d v8.1.1978
patch 8.1.1978: the eval.c file is too big
Commit: https://github.com/vim/vim/commit/1e1d30048e722906a13665bd6c3c24c87eb2fe25
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 4 14:41:14 2019 +0200
patch 8.1.1978: the eval.c file is too big
Problem: The eval.c file is too big.
Solution: Move filter() and map() to list.c.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Sep 2019 14:45:04 +0200 |
parents | f8f505ffc0a6 |
children | 08940efa6b4e |
line wrap: on
line source
" Test for reset 'scroll' " func Test_reset_scroll() let scr = &l:scroll setlocal scroll=1 setlocal scroll& call assert_equal(scr, &l:scroll) setlocal scroll=1 setlocal scroll=0 call assert_equal(scr, &l:scroll) try execute 'setlocal scroll=' . (winheight(0) + 1) " not reached call assert_false(1) catch call assert_exception('E49:') endtry split let scr = &l:scroll setlocal scroll=1 setlocal scroll& call assert_equal(scr, &l:scroll) setlocal scroll=1 setlocal scroll=0 call assert_equal(scr, &l:scroll) quit! endfunc