Mercurial > vim
view src/testdir/test_scroll_opt.vim @ 15294:2d8225cc1315 v8.1.0655
patch 8.1.0655: when appending a line text property flags are not added
commit https://github.com/vim/vim/commit/b56ac049ea6ca77a0a9b0a415bac5e82ae60b842
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 28 23:22:40 2018 +0100
patch 8.1.0655: when appending a line text property flags are not added
Problem: When appending a line text property flags are not added.
Solution: Add text properties to a newly added line.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Dec 2018 23:30:05 +0100 |
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