mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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 #6300)
This commit is contained in:
@@ -208,6 +208,15 @@ func Test_virtual_replace()
|
||||
exe "normal iabcdefghijklmnopqrst\<Esc>0gRAB\tIJKLMNO\tQR"
|
||||
call assert_equal(['AB......CDEFGHI.Jkl',
|
||||
\ 'AB IJKLMNO QRst'], getline(12, 13))
|
||||
|
||||
" Test inserting Tab with 'noexpandtab' and 'softabstop' set to 4
|
||||
%d
|
||||
call setline(1, 'aaaaaaaaaaaaa')
|
||||
set softtabstop=4
|
||||
exe "normal gggR\<Tab>\<Tab>x"
|
||||
call assert_equal("\txaaaa", getline(1))
|
||||
set softtabstop&
|
||||
|
||||
enew!
|
||||
set noai bs&vim
|
||||
if exists('save_t_kD')
|
||||
|
Reference in New Issue
Block a user