diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-14 19:08:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-14 19:08:45 +0200 |
commit | e59215c7dcae17b03daf39517560cfaa03314f5a (patch) | |
tree | 6c0a732a4d16d50668db89ea7d5a8f2cd8d35884 /src/buffer.c | |
parent | e56132bb4167f8b6ea4814cc2c99a71df3d07ff8 (diff) | |
download | vim-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.c | 4 |
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 |