aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 4c9a14b25f..8d075dfeae 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1550,7 +1550,7 @@ void enter_buffer(buf_T *buf)
diff_buf_add(curbuf);
}
- curwin->w_s = &(buf->b_s);
+ curwin->w_s = &(curbuf->b_s);
// Cursor on first line by default.
curwin->w_cursor.lnum = 1;