Mercurial > vim
diff src/testdir/test_diffmode.vim @ 29293:bf4d7898cf93 v8.2.5163
patch 8.2.5163: crash when deleting buffers in diff mode
Commit: https://github.com/vim/vim/commit/cd38bb4d83c942c4bad596835c6766cbf32e5195
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 26 14:04:07 2022 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Jun 2022 15:15:03 +0200 |
parents | 281509f1417b |
children | 92dd6fef5ace |
line wrap: on
line diff
--- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -1603,5 +1603,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