about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-11-06 09:17:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-11-06 09:17:02 -0800
commita54e59446d9f80af9975eaacd226a9efe31b5bb6 (patch)
treeec395a52abf291e4182b204c8ee725392ac1ae37
parent0e0f36f8b4a57bd9a13925c9f7e92f7bd8c59a81 (diff)
downloadtext.love-a54e59446d9f80af9975eaacd226a9efe31b5bb6.tar.gz
show partial items in the menu
Seeing a partial item can nudge someone to try resizing the window and
so learn about more shortcuts.
-rw-r--r--commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.lua b/commands.lua
index dfac9b1..67ddef9 100644
--- a/commands.lua
+++ b/commands.lua
@@ -44,7 +44,7 @@ end
 function add_hotkey_to_menu(s)
   local s_text = to_text(s)
   local width = App.width(s_text)
-  if Menu_cursor + width > App.screen.width - 5 then
+  if Menu_cursor > App.screen.width - 30 then
     return
   end
   App.color(Menu_command_color)