forked from aniani/vim
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user