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:43:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-17 23:43:14 -0700
commit36bde53d410012c07c2e9fc543ee49c06443b4d7 (patch)
tree73158fe813c55f41e51f7b56a04820f835cf3d9a /commands.lua
parentc02a5ee1ff75eb80a828bcac5f73d131994dce0a (diff)
downloadview.love-36bde53d410012c07c2e9fc543ee49c06443b4d7.tar.gz
rename
Diffstat (limited to 'commands.lua')
-rw-r--r--commands.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.lua b/commands.lua
index ab8184f..870743b 100644
--- a/commands.lua
+++ b/commands.lua
@@ -53,12 +53,12 @@ function add_hotkey_to_menu(s)
 end
 
 function source.draw_file_navigator()
-  for i,file in ipairs(File_navigation.candidates) do
-    if file == 'source' then
+  for i,filename in ipairs(File_navigation.candidates) do
+    if filename == 'source' then
       App.color(Menu_border_color)
       love.graphics.line(Menu_cursor-10,2, Menu_cursor-10,Menu_status_bar_height-2)
     end
-    add_file_to_menu(file, i == File_navigation.index)
+    add_file_to_menu(filename, i == File_navigation.index)
     if Menu_cursor >= App.screen.width - 5 then
       break
     end