Merge pull request #1209 from atwupack/vp-7.4.320

vim-patch:7.4.320
This commit is contained in:
Justin M. Keyes
2014-09-26 16:05:49 -04:00
5 changed files with 20 additions and 7 deletions

View File

@@ -318,7 +318,7 @@ close_buffer (
} else if (buf->b_p_bh[0] == 'u') /* 'bufhidden' == "unload" */
unload_buf = true;
if (win != NULL) {
if (win_valid(win)) {
/* Set b_last_cursor when closing the last window for the buffer.
* Remember the last cursor position and window options of the buffer.
* This used to be only for the current window, but then options like