comparison src/testdir/test_visual.vim @ 20941:505d97ea54da v8.2.1022

patch 8.2.1022: various parts of code not covered by tests Commit: https://github.com/vim/vim/commit/845e0ee59430eac07e74b6cb92020e420d17953d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 20 16:05:32 2020 +0200 patch 8.2.1022: various parts of code not covered by tests Problem: Various parts of code not covered by tests. Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6300)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Jun 2020 16:15:04 +0200
parents a4bd28e2cf1d
children 2626306efe44
comparison
equal deleted inserted replaced
20940:88ce5327f213 20941:505d97ea54da
206 exe "normal iab\tcdefghi\tjkl" 206 exe "normal iab\tcdefghi\tjkl"
207 exe "normal 0gRAB......CDEFGHI.J\<Esc>o" 207 exe "normal 0gRAB......CDEFGHI.J\<Esc>o"
208 exe "normal iabcdefghijklmnopqrst\<Esc>0gRAB\tIJKLMNO\tQR" 208 exe "normal iabcdefghijklmnopqrst\<Esc>0gRAB\tIJKLMNO\tQR"
209 call assert_equal(['AB......CDEFGHI.Jkl', 209 call assert_equal(['AB......CDEFGHI.Jkl',
210 \ 'AB IJKLMNO QRst'], getline(12, 13)) 210 \ 'AB IJKLMNO QRst'], getline(12, 13))
211
212 " Test inserting Tab with 'noexpandtab' and 'softabstop' set to 4
213 %d
214 call setline(1, 'aaaaaaaaaaaaa')
215 set softtabstop=4
216 exe "normal gggR\<Tab>\<Tab>x"
217 call assert_equal("\txaaaa", getline(1))
218 set softtabstop&
219
211 enew! 220 enew!
212 set noai bs&vim 221 set noai bs&vim
213 if exists('save_t_kD') 222 if exists('save_t_kD')
214 let &t_kD = save_t_kD 223 let &t_kD = save_t_kD
215 endif 224 endif