comparison src/testdir/test_visual.vim @ 13406:4e30f3f4cb78 v8.0.1577

patch 8.0.1577: virtual replace test fails on MS-Windows commit https://github.com/vim/vim/commit/e7808481507b9e11ae73c8f865e95eb2d20f6cc8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 6 13:17:23 2018 +0100 patch 8.0.1577: virtual replace test fails on MS-Windows Problem: Virtual replace test fails on MS-Windows. Solution: Make adding a termcap entry work for a builtin terminal. Restore terminal keys in a better way.
author Christian Brabandt <cb@256bit.org>
date Tue, 06 Mar 2018 13:30:06 +0100
parents 338b15c63e2c
children c571356c65bd
comparison
equal deleted inserted replaced
13405:b65fa9463baa 13406:4e30f3f4cb78
155 enew! 155 enew!
156 endfunc 156 endfunc
157 157
158 " Test Virtual replace mode. 158 " Test Virtual replace mode.
159 func Test_virtual_replace() 159 func Test_virtual_replace()
160 let save_t_kD = &t_kD
161 let save_t_kb = &t_kb
160 exe "set t_kD=\<C-V>x7f t_kb=\<C-V>x08" 162 exe "set t_kD=\<C-V>x7f t_kb=\<C-V>x08"
161 enew! 163 enew!
162 exe "normal a\nabcdefghi\njk\tlmn\n opq rst\n\<C-D>uvwxyz" 164 exe "normal a\nabcdefghi\njk\tlmn\n opq rst\n\<C-D>uvwxyz"
163 call cursor(1,1) 165 call cursor(1,1)
164 set ai bs=2 166 set ai bs=2
184 exe "normal 0gRAB......CDEFGHI.J\<Esc>o" 186 exe "normal 0gRAB......CDEFGHI.J\<Esc>o"
185 exe "normal iabcdefghijklmnopqrst\<Esc>0gRAB\tIJKLMNO\tQR" 187 exe "normal iabcdefghijklmnopqrst\<Esc>0gRAB\tIJKLMNO\tQR"
186 call assert_equal(['AB......CDEFGHI.Jkl', 188 call assert_equal(['AB......CDEFGHI.Jkl',
187 \ 'AB IJKLMNO QRst'], getline(12, 13)) 189 \ 'AB IJKLMNO QRst'], getline(12, 13))
188 enew! 190 enew!
189 set noai bs&vim t_kD&vim t_kb&vim 191 set noai bs&vim
192 let &t_kD = save_t_kD
193 let &t_kb = save_t_kb
190 endfunc 194 endfunc
191 195
192 " Test Virtual replace mode. 196 " Test Virtual replace mode.
193 func Test_virtual_replace2() 197 func Test_virtual_replace2()
194 enew! 198 enew!