comparison src/testdir/test_conceal.vim @ 15476:5b0f37d844b3 v8.1.0746

patch 8.1.0746: highlighting not updated with conceal and 'cursorline' commit https://github.com/vim/vim/commit/bbee8d5122b159683b3f52eddd0da85fcf1fcbfd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 14 21:51:40 2019 +0100 patch 8.1.0746: highlighting not updated with conceal and 'cursorline' Problem: Highlighting not updated with conceal and 'cursorline'. (Jason Franklin) Solution: Do not use a zero line number. Check if 'conceallevel' is set for the current window.
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Jan 2019 22:00:06 +0100
parents 80e79573dd6e
children 9c90cf08cfa8
comparison
equal deleted inserted replaced
15475:a695c188f6ca 15476:5b0f37d844b3
107 107
108 " clean up 108 " clean up
109 call StopVimInTerminal(buf) 109 call StopVimInTerminal(buf)
110 call delete('XTest_conceal') 110 call delete('XTest_conceal')
111 endfunc 111 endfunc
112
113 func Test_conceal_with_cursorline()
114 " Opens a help window, where 'conceal' is set, switches to the other window
115 " where 'cursorline' needs to be updated when the cursor moves.
116 call writefile([
117 \ 'set cursorline',
118 \ 'normal othis is a test',
119 \ 'new',
120 \ 'call setline(1, ["one", "two", "three", "four", "five"])',
121 \ 'set ft=help',
122 \ 'normal M',
123 \ ], 'XTest_conceal_cul')
124 let buf = RunVimInTerminal('-S XTest_conceal_cul', {})
125 call VerifyScreenDump(buf, 'Test_conceal_cul_01', {})
126
127 call term_sendkeys(buf, ":wincmd w\r")
128 call VerifyScreenDump(buf, 'Test_conceal_cul_02', {})
129
130 call term_sendkeys(buf, "k")
131 call VerifyScreenDump(buf, 'Test_conceal_cul_03', {})
132
133 " clean up
134 call StopVimInTerminal(buf)
135 call delete('XTest_conceal_cul')
136 endfunc