0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

updated for version 7.4.059

Problem:    set_last_cursor() may encounter w_buffer being NULL.  (Matt
            Mkaniaris)
Solution:   Check for NULL.
This commit is contained in:
Bram Moolenaar
2013-11-03 00:20:52 +01:00
parent 92c2db8be6
commit 9db1293317
2 changed files with 4 additions and 1 deletions

View File

@@ -1374,7 +1374,8 @@ free_jumplist(wp)
set_last_cursor(win)
win_T *win;
{
win->w_buffer->b_last_cursor = win->w_cursor;
if (win->w_buffer != NULL)
win->w_buffer->b_last_cursor = win->w_cursor;
}
#if defined(EXITFREE) || defined(PROTO)