diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-25 18:17:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-25 18:17:04 -0700 |
commit | e26470aada335d56c0766fb2e32524981a6e9af2 (patch) | |
tree | dfc47a92584a07effae29e4404a650f4aa10dd88 | |
parent | 94b6d04e83c346ffe4c298536b62803ba1cf4484 (diff) | |
download | lines.love-e26470aada335d56c0766fb2e32524981a6e9af2.tar.gz |
update cursor in search box
-rw-r--r-- | search.lua | 4 |
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) |