summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index ee97ed9..ea3f9f4 100644
--- a/window.c
+++ b/window.c
@@ -115,7 +115,7 @@ void window_redraw(struct editor_state *editor)
SDL_Rect cursor_rect;
cursor_rect.x = editor->cursor_display_x * font.width;
- cursor_rect.y = (editor->cursor_y - editor->row_offset) * font.height;
+ cursor_rect.y = (editor->cursor_y - editor->line_offset) * font.height;
cursor_rect.w = font.width;
cursor_rect.h = font.height;