diff src/window.c @ 28361:68c36f734b10 v8.2.4706

patch 8.2.4706: buffer remains active with WinClosed and tabpages Commit: https://github.com/vim/vim/commit/6a06940f8ae7283999c83ccdf268540220573105 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Apr 7 14:08:29 2022 +0100 patch 8.2.4706: buffer remains active with WinClosed and tabpages Problem: Buffer remains active if a WinClosed event throws an exception when there are multiple tabpages. Solution: Ignore aborting() when closing the buffer. (closes #10101)
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 Apr 2022 15:15:02 +0200
parents d3a1fc6b4da6
children e466fdbe0699
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -2814,7 +2814,7 @@ win_close_othertab(win_T *win, int free_
     if (win->w_buffer != NULL)
 	// Close the link to the buffer.
 	close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0,
-								 FALSE, FALSE);
+								 FALSE, TRUE);
 
     // Careful: Autocommands may have closed the tab page or made it the
     // current tab page.