summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mark.c b/src/mark.c
index 1ac91d8b1..9c17f7afb 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -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)