vim-patch:8.1.2290: autocommand test fails

Problem:    Autocommand test fails.
Solution:   Remove 'closeoff' from 'diffopt'.
a9aa86ff95
This commit is contained in:
Jan Edmund Lazo 2020-11-24 22:17:04 -05:00
parent ec53d43f84
commit 3a573a9e2f
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -696,6 +696,7 @@ func Test_OptionSet_diffmode_close()
call setline(1, ['buffer 2', 'line 2', 'line 3', 'line4']) call setline(1, ['buffer 2', 'line 2', 'line 3', 'line4'])
call assert_fails(':diffthis', 'E788') call assert_fails(':diffthis', 'E788')
call assert_equal(1, &diff) call assert_equal(1, &diff)
set diffopt-=closeoff
bw! bw!
call assert_fails(':diffoff!', 'E788') call assert_fails(':diffoff!', 'E788')
bw! bw!