about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index 5c1abd9..19f9b21 100644
--- a/main.lua
+++ b/main.lua
@@ -116,10 +116,7 @@ function love.draw()
                        end
                      end})
           if line_index == Cursor_line then
-            -- cursor
-            love.graphics.setColor(1,0,0)
-            love.graphics.circle('fill', 25,y+math.floor(15*Zoom), 2)
-            love.graphics.setColor(0,0,0)
+            Text.draw_cursor(25, y)
           end
         y = y + math.floor(15*Zoom)  -- text height
       elseif line.mode == 'drawing' then