From 49ec7c88e85a4081906c7a575975caf20d015382 Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Fri, 27 Aug 2021 20:12:09 -0300 Subject: [PATCH] Fix the additional four spaces to two spaces in the indent --- data/plugins/scale.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/data/plugins/scale.lua b/data/plugins/scale.lua index 68577285..2b340e5c 100644 --- a/data/plugins/scale.lua +++ b/data/plugins/scale.lua @@ -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