diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-14 21:55:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-14 21:55:51 +0200 |
commit | 5babc6e858afbfa54aa0e203a64b9c70175487b7 (patch) | |
tree | b6fe7ec5b3a424219c9eacf193908b2095eea1ec /src/testdir/test_conceal.vim | |
parent | 997d42427eaab889058eb047e08d55de9e4a968a (diff) | |
download | vim-git-5babc6e858afbfa54aa0e203a64b9c70175487b7.tar.gz |
patch 8.1.2031: cursor position wrong when resizing and using concealv8.1.2031
Problem: Cursor position wrong when resizing and using conceal.
Solution: Set the flags that the cursor position is valid when setting the
row and column during redrawing. (closes #4931)
Diffstat (limited to 'src/testdir/test_conceal.vim')
-rw-r--r-- | src/testdir/test_conceal.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_conceal.vim b/src/testdir/test_conceal.vim index 6b9524263..bec21643b 100644 --- a/src/testdir/test_conceal.vim +++ b/src/testdir/test_conceal.vim @@ -135,3 +135,23 @@ func Test_conceal_with_cursorline() call StopVimInTerminal(buf) call delete('XTest_conceal_cul') endfunc + +func Test_conceal_resize_term() + let code =<< trim [CODE] + call setline(1, '`one` `two` `three` `four` `five`, the backticks should be concealed') + setl cocu=n cole=3 + syn region CommentCodeSpan matchgroup=Comment start=/`/ end=/`/ concealends + normal fb + [CODE] + call writefile(code, 'XTest_conceal_resize') + let buf = RunVimInTerminal('-S XTest_conceal_resize', {'rows': 6}) + call VerifyScreenDump(buf, 'Test_conceal_resize_01', {}) + + call win_execute(buf->win_findbuf()[0], 'wincmd +') + call term_wait(buf) + call VerifyScreenDump(buf, 'Test_conceal_resize_02', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('XTest_conceal_resize') +endfunc |