about summary refs log tree commit diff stats
path: root/search.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-01-15 01:45:35 -0800
committerKartik K. Agaram <vc@akkartik.com>2024-01-15 01:45:35 -0800
commitdedb843535f3a4fc1a1f9f71100c80fc1e5d87e4 (patch)
treec77d28b50b7b4def159e574533f7c551d6b9e65a /search.lua
parent6c568c6ef0d69fddcbaf93d233e46a7e75ee7845 (diff)
parent348852ee2bdeffee303ec4f8ce796e7605caa62d (diff)
downloadview.love-dedb843535f3a4fc1a1f9f71100c80fc1e5d87e4.tar.gz
Merge text.love
Diffstat (limited to 'search.lua')
-rw-r--r--search.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.lua b/search.lua
index 67b82b3..54bab14 100644
--- a/search.lua
+++ b/search.lua
@@ -13,7 +13,7 @@ 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)
-  Text.draw_cursor(State, 25+App.width(State.search_term),y-5)
+  Text.draw_cursor(State, 25+State.font:getWidth(State.search_term),y-5)
 end
 
 function Text.search_next(State)