summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-17 10:39:21 -0700
committercflip <cflip@cflip.net>2023-01-17 10:39:21 -0700
commit1a416a917d74d956469e6e80cf4bb519e9474c91 (patch)
tree6e61b15d9cece1af0a64d3a9cd2a5d5dd73815b7 /window.c
parent8be3915417bcafdbf2a8752980db96e06df096aa (diff)
Rename 'rows' to 'lines' everywhere
For whatever reason lines were called rows in the code, so this refactor changes that name everywhere. The name 'row' is still used in some places to refer to the unit of height in the screen.
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;