From a54e59446d9f80af9975eaacd226a9efe31b5bb6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 6 Nov 2022 09:17:02 -0800 Subject: show partial items in the menu Seeing a partial item can nudge someone to try resizing the window and so learn about more shortcuts. --- commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0