diff options
| author | Volodymyr Kot <volodymyr.kot.ua@gmail.com> | 2021-11-21 18:10:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-21 13:10:24 -0500 |
| commit | 9d0726f6d85e5101dd44b174ab40d0f2f4e4ff44 (patch) | |
| tree | ca94508197d7d598fdb4412ab319c28dea9ac34e /src/nvim/testdir | |
| parent | 9d868317f9c6b9cf5ec4bcf0694d2934815d806d (diff) | |
| download | rneovim-9d0726f6d85e5101dd44b174ab40d0f2f4e4ff44.tar.gz rneovim-9d0726f6d85e5101dd44b174ab40d0f2f4e4ff44.tar.bz2 rneovim-9d0726f6d85e5101dd44b174ab40d0f2f4e4ff44.zip | |
vim-patch:8.1.1606: on a narrow screen ":hi" output is confusing (#16388)
Problem: On a narrow screen ":hi" output is confusing.
Solution: Insert a space between highlight group name and "xxx". (Masato
Nishihaga, closes vim/vim#4599)
https://github.com/vim/vim/commit/548be7f126dc57ca861cb26dc6492c3b2a9e2c99
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_highlight.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index 6fd9477ce9..c38bfa5677 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -651,6 +651,16 @@ func Test_1_highlight_Normalgroup_exists() endif endfunc +function Test_no_space_before_xxx() + " Note: we need to create this highlight group in the test because it does not exist in Neovim + execute('hi StatusLineTermNC ctermfg=green') + let l:org_columns = &columns + set columns=17 + let l:hi_StatusLineTermNC = join(split(execute('hi StatusLineTermNC'))) + call assert_match('StatusLineTermNC xxx', l:hi_StatusLineTermNC) + let &columns = l:org_columns +endfunction + " Test for using RGB color values in a highlight group func Test_xxlast_highlight_RGB_color() CheckCanRunGui |