about summary refs log tree commit diff stats
path: root/commands.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-17 23:03:43 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-17 23:03:43 -0700
commitb5ff0a4764d593baf2e729f1c1cf0a3766b710c1 (patch)
tree7f899db231b0844e21df6c3a36be8a4518f2e798 /commands.lua
parentcea2730080b80e1c8d3c4ad1196429ff282b7c1c (diff)
downloadlines.love-b5ff0a4764d593baf2e729f1c1cf0a3766b710c1.tar.gz
use existing local
Diffstat (limited to 'commands.lua')
-rw-r--r--commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.lua b/commands.lua
index b30013c..fa45b31 100644
--- a/commands.lua
+++ b/commands.lua
@@ -74,7 +74,7 @@ function add_file_to_menu(s, cursor_highlight)
   end
   if cursor_highlight then
     App.color(Menu_highlight_color)
-    love.graphics.rectangle('fill', Menu_cursor-5,5-2, App.width(s_text)+5*2,Editor_state.line_height+2*2)
+    love.graphics.rectangle('fill', Menu_cursor-5,5-2, width+5*2,Editor_state.line_height+2*2)
   end
   App.color(Menu_command_color)
   App.screen.draw(s_text, Menu_cursor,5)