From 1a416a917d74d956469e6e80cf4bb519e9474c91 Mon Sep 17 00:00:00 2001 From: cflip Date: Tue, 17 Jan 2023 10:39:21 -0700 Subject: 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. --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window.c') 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; -- cgit v1.2.3