diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-02-12 07:49:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 07:49:09 +0800 |
| commit | f6485e9446ed6a59accc86724d05981d5ff8f976 (patch) | |
| tree | f9724c7ccc1fbd7eccd070186933e1f58364b168 /src/nvim/testdir | |
| parent | 906182065bd73e4fbedeecc347ea8c8647c3304f (diff) | |
| parent | 4ca522fd0290a2c5767d28c896fefb6d54f9c5d1 (diff) | |
| download | rneovim-f6485e9446ed6a59accc86724d05981d5ff8f976.tar.gz rneovim-f6485e9446ed6a59accc86724d05981d5ff8f976.tar.bz2 rneovim-f6485e9446ed6a59accc86724d05981d5ff8f976.zip | |
Merge pull request #16841 from zeertzjq/vim-8.1.2073
vim-patch:8.1.2073: when editing a buffer 'colorcolumn' may not work
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_highlight.vim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index 899eb530ec..6971ecd357 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -597,6 +597,31 @@ func Test_cursorline_with_visualmode() call delete('Xtest_cursorline_with_visualmode') endfunc +func Test_colorcolumn() + CheckScreendump + + " check that setting 'colorcolumn' when entering a buffer works + let lines =<< trim END + split + edit X + call setline(1, ["1111111111","22222222222","3333333333"]) + set nomodified + set colorcolumn=3,9 + set number cursorline cursorlineopt=number + wincmd w + buf X + END + call writefile(lines, 'Xtest_colorcolumn') + let buf = RunVimInTerminal('-S Xtest_colorcolumn', {'rows': 10}) + call term_sendkeys(buf, ":\<CR>") + call term_wait(buf) + call VerifyScreenDump(buf, 'Test_colorcolumn_1', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('Xtest_colorcolumn') +endfunc + func Test_colorcolumn_bri() CheckScreendump |