Mercurial > vim
diff src/testdir/test_display.vim @ 23932:4549133c1e77 v8.2.2508
patch 8.2.2508: cannot change the character displayed in non existing lines
Commit: https://github.com/vim/vim/commit/a98f8a230596d8fb44cc68321de72980a21428cb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 13 18:24:23 2021 +0100
patch 8.2.2508: cannot change the character displayed in non existing lines
Problem: Cannot change the character displayed in non existing lines.
Solution: Add the "eob" item to 'fillchars'. (closes https://github.com/vim/vim/issues/7832, closes https://github.com/vim/vim/issues/3820)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Feb 2021 18:30:03 +0100 |
parents | e0af4660dfc7 |
children | 17697c4e5d48 |
line wrap: on
line diff
--- a/src/testdir/test_display.vim +++ b/src/testdir/test_display.vim @@ -257,4 +257,26 @@ func Test_display_scroll_at_topline() call StopVimInTerminal(buf) endfunc +" Test for 'eob' (EndOfBuffer) item in 'fillchars' +func Test_eob_fillchars() + " default value + call assert_match('eob:\~', &fillchars) + " invalid values + call assert_fails(':set fillchars=eob:', 'E474:') + call assert_fails(':set fillchars=eob:xy', 'E474:') + call assert_fails(':set fillchars=eob:\255', 'E474:') + call assert_fails(':set fillchars=eob:<ff>', 'E474:') + " default is ~ + new + call assert_equal('~', Screenline(2)) + set fillchars=eob:+ + redraw! + call assert_equal('+', Screenline(2)) + set fillchars=eob:\ + redraw! + call assert_equal(' ', nr2char(screenchar(2, 1))) + set fillchars& + close +endfunc + " vim: shiftwidth=2 sts=2 expandtab