0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.0482: channel and sandbox code not sufficiently tested

Problem:    Channel and sandbox code not sufficiently tested.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #5855)
This commit is contained in:
Bram Moolenaar
2020-03-30 19:32:53 +02:00
parent 7d333a900d
commit ca68ae1311
15 changed files with 488 additions and 31 deletions

View File

@@ -267,6 +267,15 @@ func Test_virtual_replace2()
call assert_equal(['abcd',
\ 'efgh',
\ 'ijkl'], getline(1, '$'))
" Test for truncating spaces in a newly added line using 'autoindent' if
" characters are not added to that line.
%d_
call setline(1, [' app', ' bee', ' cat'])
setlocal autoindent
exe "normal gg$gRt\n\nr"
call assert_equal([' apt', '', ' rat'], getline(1, '$'))
" clean up
%d_
set bs&vim