0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.2212

Problem:    Mark " is not set when closing a window in another tab. (Guraga)
Solution:   Check all tabs for the window to be valid. (based on patch by
            Hirohito Higashi, closes #974)
This commit is contained in:
Bram Moolenaar
2016-08-14 19:08:45 +02:00
parent e56132bb41
commit e59215c7dc
5 changed files with 58 additions and 3 deletions

View File

@@ -475,7 +475,7 @@ close_buffer(
if (win != NULL
#ifdef FEAT_WINDOWS
&& win_valid(win) /* in case autocommands closed the window */
&& win_valid_any_tab(win) /* in case autocommands closed the window */
#endif
)
{
@@ -581,7 +581,7 @@ aucmd_abort:
if (
#ifdef FEAT_WINDOWS
win_valid(win) &&
win_valid_any_tab(win) &&
#else
win != NULL &&
#endif