diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-30 20:59:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-30 20:59:40 -0500 |
| commit | a1a4dd34ea26d397f7222afe943f67bbdb889d3f (patch) | |
| tree | 34f1dde81d850623a796f633b19d396a740730ad /src/nvim/testdir/test_listlbr_utf8.vim | |
| parent | c3a45032e6fa3b2aafff10a1e5ef606d077cd954 (diff) | |
| parent | 87279bb8099fb0c37667ae131d4f7dbeb42dc504 (diff) | |
| download | rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.gz rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.bz2 rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.zip | |
Merge pull request #13419 from janlazo/vim-8.2.2067
vim-patch:8.1.2264,8.2.{617,620,628,2067,2069}
Diffstat (limited to 'src/nvim/testdir/test_listlbr_utf8.vim')
| -rw-r--r-- | src/nvim/testdir/test_listlbr_utf8.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/nvim/testdir/test_listlbr_utf8.vim b/src/nvim/testdir/test_listlbr_utf8.vim index b648a3361b..c38e0c5f3c 100644 --- a/src/nvim/testdir/test_listlbr_utf8.vim +++ b/src/nvim/testdir/test_listlbr_utf8.vim @@ -9,15 +9,15 @@ endif source view_util.vim -function s:screen_lines(lnum, width) abort +func s:screen_lines(lnum, width) abort return ScreenLines(a:lnum, a:width) -endfunction +endfunc -function! s:compare_lines(expect, actual) +func s:compare_lines(expect, actual) call assert_equal(a:expect, a:actual) -endfunction +endfunc -function s:screen_attr(lnum, chars, ...) abort +func s:screen_attr(lnum, chars, ...) abort let line = getline(a:lnum) let attr = [] let prefix = get(a:000, 0, 0) @@ -26,18 +26,18 @@ function s:screen_attr(lnum, chars, ...) abort let attr += [screenattr(a:lnum, scol + prefix)] endfor return attr -endfunction +endfunc -function s:test_windows(...) +func s:test_windows(...) call NewWindow(10, 20) setl ts=4 sw=4 sts=4 linebreak sbr=+ wrap exe get(a:000, 0, '') -endfunction +endfunc -function s:close_windows(...) +func s:close_windows(...) call CloseWindow() exe get(a:000, 0, '') -endfunction +endfunc func Test_linebreak_with_fancy_listchars() call s:test_windows("setl list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6") |