bugfix
This commit is contained in:
parent
7fd3c92efe
commit
bca0c1fab9
2
text.lua
2
text.lua
|
@ -38,7 +38,7 @@ function Text.draw(line, line_width, line_index, cursor_line, cursor_pos)
|
||||||
x = x + frag_width
|
x = x + frag_width
|
||||||
pos = pos + frag_len
|
pos = pos + frag_len
|
||||||
end
|
end
|
||||||
if cursor_pos == pos then
|
if line_index == cursor_line and cursor_pos == pos then
|
||||||
Text.draw_cursor(x, y)
|
Text.draw_cursor(x, y)
|
||||||
end
|
end
|
||||||
return y
|
return y
|
||||||
|
|
Loading…
Reference in New Issue