vim-patch:8.2.5163: crash when deleting buffers in diff mode

Problem:    Crash when deleting buffers in diff mode.
Solution:   Recompute diffs later.  Skip window without a valid buffer.
cd38bb4d83
This commit is contained in:
zeertzjq
2022-07-25 20:06:24 +08:00
parent 611b43369e
commit 8543de3a86
2 changed files with 18 additions and 2 deletions

View File

@@ -1446,5 +1446,17 @@ func Test_diff_scroll()
call delete('Xright')
endfunc
" This was trying to update diffs for a buffer being closed
func Test_diff_only()
silent! lfile
set diff
lopen
norm o
silent! norm o
set nodiff
%bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab