about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/text.lua b/text.lua
index dc9a42a..af3553b 100644
--- a/text.lua
+++ b/text.lua
@@ -75,6 +75,11 @@ 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
+    -- cursor
+    love.graphics.setColor(1,0,0)
+    love.graphics.circle('fill', x,y+math.floor(15*Zoom), 2)
+  end
   return y
 end
 -- manual tests: