Fix the additional four spaces to two spaces in the indent

This commit is contained in:
Daniel Rocha 2021-08-27 20:12:09 -03:00 committed by Francesco Abbate
parent dac3a9cba5
commit 49ec7c88e8
1 changed files with 11 additions and 11 deletions

View File

@ -81,25 +81,25 @@ function RootView:on_mouse_wheel(d, ...)
end
local function res_scale()
scale_level = 0
set_scale(default_scale)
scale_level = 0
set_scale(default_scale)
end
local function inc_scale()
scale_level = scale_level + 1
set_scale(default_scale + scale_level * scale_steps)
scale_level = scale_level + 1
set_scale(default_scale + scale_level * scale_steps)
end
local function dec_scale()
local new_scale_level = default_scale + (scale_level - 1) * scale_steps
local new_scale_level = default_scale + (scale_level - 1) * scale_steps
if new_scale_level < MIN_SCALE then
set_scale(MIN_SCALE)
return
end
if new_scale_level < MIN_SCALE then
set_scale(MIN_SCALE)
return
end
scale_level = scale_level - 1
set_scale(default_scale + scale_level * scale_steps)
scale_level = scale_level - 1
set_scale(default_scale + scale_level * scale_steps)
end