comparison src/testdir/test_conceal.vim @ 18072:5f1554b2587c v8.1.2031

patch 8.1.2031: cursor position wrong when resizing and using conceal Commit: https://github.com/vim/vim/commit/5babc6e858afbfa54aa0e203a64b9c70175487b7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 14 21:55:51 2019 +0200 patch 8.1.2031: cursor position wrong when resizing and using conceal 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Sep 2019 22:00:03 +0200
parents 0da9bc55c31a
children 1895dd434ecf
comparison
equal deleted inserted replaced
18071:ac2dff806259 18072:5f1554b2587c
133 133
134 " clean up 134 " clean up
135 call StopVimInTerminal(buf) 135 call StopVimInTerminal(buf)
136 call delete('XTest_conceal_cul') 136 call delete('XTest_conceal_cul')
137 endfunc 137 endfunc
138
139 func Test_conceal_resize_term()
140 let code =<< trim [CODE]
141 call setline(1, '`one` `two` `three` `four` `five`, the backticks should be concealed')
142 setl cocu=n cole=3
143 syn region CommentCodeSpan matchgroup=Comment start=/`/ end=/`/ concealends
144 normal fb
145 [CODE]
146 call writefile(code, 'XTest_conceal_resize')
147 let buf = RunVimInTerminal('-S XTest_conceal_resize', {'rows': 6})
148 call VerifyScreenDump(buf, 'Test_conceal_resize_01', {})
149
150 call win_execute(buf->win_findbuf()[0], 'wincmd +')
151 call term_wait(buf)
152 call VerifyScreenDump(buf, 'Test_conceal_resize_02', {})
153
154 " clean up
155 call StopVimInTerminal(buf)
156 call delete('XTest_conceal_resize')
157 endfunc