Mercurial > vim
comparison src/testdir/test_statusline.vim @ 20984:fe06ee7d3511 v8.2.1043
patch 8.2.1043: %a item in 'statusline' not tested
Commit: https://github.com/vim/vim/commit/4014e2ceb03b8aeb947a0c671a099b677c8f2d5d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 23 20:00:50 2020 +0200
patch 8.2.1043: %a item in 'statusline' not tested
Problem: %a item in 'statusline' not tested.
Solution: Add a test. (Dominique Pell?, closes https://github.com/vim/vim/issues/6318)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 23 Jun 2020 20:15:07 +0200 |
parents | c087099e9163 |
children | 0650d220f742 |
comparison
equal
deleted
inserted
replaced
20983:3bf150ea4d44 | 20984:fe06ee7d3511 |
---|---|
62 endfunc | 62 endfunc |
63 | 63 |
64 func Test_statusline() | 64 func Test_statusline() |
65 CheckFeature quickfix | 65 CheckFeature quickfix |
66 | 66 |
67 new Xstatusline | 67 " %a: Argument list ({current} of {max}) |
68 set statusline=%a | |
69 call assert_match('^\s*$', s:get_statusline()) | |
70 arglocal a1 a2 | |
71 rewind | |
72 call assert_match('^ (1 of 2)\s*$', s:get_statusline()) | |
73 next | |
74 call assert_match('^ (2 of 2)\s*$', s:get_statusline()) | |
75 e Xstatusline | |
76 call assert_match('^ ((2) of 2)\s*$', s:get_statusline()) | |
77 | |
68 only | 78 only |
69 set laststatus=2 | 79 set laststatus=2 |
70 set splitbelow | 80 set splitbelow |
71 call setline(1, range(1, 10000)) | 81 call setline(1, range(1, 10000)) |
72 | 82 |