indent
This commit is contained in:
parent
9013eaa637
commit
5c0ce8ee36
14
commands.lua
14
commands.lua
|
@ -75,13 +75,13 @@ function source.num_lines_for_file_navigator()
|
||||||
local result = 1
|
local result = 1
|
||||||
local x = 5
|
local x = 5
|
||||||
for i,filename in ipairs(File_navigation.candidates) do
|
for i,filename in ipairs(File_navigation.candidates) do
|
||||||
local width = App.width(to_text(filename))
|
local width = App.width(to_text(filename))
|
||||||
if x + width > App.screen.width - 5 then
|
if x + width > App.screen.width - 5 then
|
||||||
result = result+1
|
result = result+1
|
||||||
x = 5 + width
|
x = 5 + width
|
||||||
else
|
else
|
||||||
x = x + width + 30
|
x = x + width + 30
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue