summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-14 19:08:45 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-14 19:08:45 +0200
commite59215c7dcae17b03daf39517560cfaa03314f5a (patch)
tree6c0a732a4d16d50668db89ea7d5a8f2cd8d35884 /src/buffer.c
parente56132bb4167f8b6ea4814cc2c99a71df3d07ff8 (diff)
downloadvim-e59215c7dcae17b03daf39517560cfaa03314f5a.zip
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)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2a09a6308..4f6888255 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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