From 5c0ce8ee36a963041f44861c8221110ff2d69647 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 18 Sep 2022 00:01:14 -0700 Subject: [PATCH] indent --- commands.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/commands.lua b/commands.lua index ee5a5fa..1bc2b0d 100644 --- a/commands.lua +++ b/commands.lua @@ -75,13 +75,13 @@ function source.num_lines_for_file_navigator() local result = 1 local x = 5 for i,filename in ipairs(File_navigation.candidates) do - local width = App.width(to_text(filename)) - if x + width > App.screen.width - 5 then - result = result+1 - x = 5 + width - else - x = x + width + 30 - end + local width = App.width(to_text(filename)) + if x + width > App.screen.width - 5 then + result = result+1 + x = 5 + width + else + x = x + width + 30 + end end return result end