about summary refs log tree commit diff stats
path: root/search.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-25 18:17:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-25 18:17:04 -0700
commite26470aada335d56c0766fb2e32524981a6e9af2 (patch)
treedfc47a92584a07effae29e4404a650f4aa10dd88 /search.lua
parent94b6d04e83c346ffe4c298536b62803ba1cf4484 (diff)
downloadlines.love-e26470aada335d56c0766fb2e32524981a6e9af2.tar.gz
update cursor in search box
Diffstat (limited to 'search.lua')
-rw-r--r--search.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/search.lua b/search.lua
index 41d2b8f..b578668 100644
--- a/search.lua
+++ b/search.lua
@@ -13,12 +13,10 @@ function Text.draw_search_bar(State)
   love.graphics.rectangle('line', 20, y-6, App.screen.width-40, h+2, 2,2)
   App.color(Text_color)
   App.screen.print(State.search_term, 25,y-5)
-  App.color(Cursor_color)
   if State.search_text == nil then
     State.search_text = App.newText(love.graphics.getFont(), State.search_term)
   end
-  love.graphics.circle('fill', 25+App.width(State.search_text),y-5+h, 2)
-  App.color(Text_color)
+  Text.draw_cursor(State, 25+App.width(State.search_text),y-5)
 end
 
 function Text.search_next(State)