This commit is contained in:
Kartik K. Agaram 2022-05-20 05:44:04 -07:00
parent 7fd3c92efe
commit bca0c1fab9
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ function Text.draw(line, line_width, line_index, cursor_line, cursor_pos)
x = x + frag_width
pos = pos + frag_len
end
if cursor_pos == pos then
if line_index == cursor_line and cursor_pos == pos then
Text.draw_cursor(x, y)
end
return y