comparison src/testdir/test_display.vim @ 18424:956a9bc4e25a v8.1.2206

patch 8.1.2206: no test for fixed issue #3893 Commit: https://github.com/vim/vim/commit/28686682e77c0cca963201ae671bd773d86dba31 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 24 15:12:37 2019 +0200 patch 8.1.2206: no test for fixed issue https://github.com/vim/vim/issues/3893 Problem: No test for fixed issue https://github.com/vim/vim/issues/3893. Solution: Add a test. (Christian Brabandt, https://github.com/vim/vim/issues/3893)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Oct 2019 15:15:05 +0200
parents 851a014dfd8b
children a686560cf6c9
comparison
equal deleted inserted replaced
18423:b27683fe6c4f 18424:956a9bc4e25a
156 \ ] 156 \ ]
157 call assert_equal(expect, lines) 157 call assert_equal(expect, lines)
158 set list& listchars& wrap& 158 set list& listchars& wrap&
159 bw! 159 bw!
160 endfunc 160 endfunc
161
162 " Check that win_lines() works correctly with the number_only parameter=TRUE
163 " should break early to optimize cost of drawing, but needs to make sure
164 " that the number column is correctly highlighted.
165 func Test_scroll_CursorLineNr_update()
166 CheckScreendump
167
168 let lines =<< trim END
169 hi CursorLineNr ctermfg=73 ctermbg=236
170 set nu rnu cursorline cursorlineopt=number
171 exe ":norm! o\<esc>110ia\<esc>"
172 END
173 let filename = 'Xdrawscreen'
174 call writefile(lines, filename)
175 let buf = RunVimInTerminal('-S '.filename, #{rows: 5, cols: 50})
176 call term_sendkeys(buf, "k")
177 call term_wait(buf)
178 call VerifyScreenDump(buf, 'Test_winline_rnu', {})
179
180 " clean up
181 call StopVimInTerminal(buf)
182 call delete(filename)
183 endfunc