mirror of
https://github.com/neovim/neovim.git
synced 2026-08-04 06:38:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user