aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/scale.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/scale.lua b/plugins/scale.lua
index 6b3444a..206b3a5 100644
--- a/plugins/scale.lua
+++ b/plugins/scale.lua
@@ -34,6 +34,7 @@ local default = current_scale
local function set_scale(scale)
local s = scale / current_scale
+ current_scale = scale
if config.scale_mode == "ui" then
style.padding.x = style.padding.x * s
@@ -51,7 +52,6 @@ local function set_scale(scale)
style.code_font = scale_font(style.code_font, s)
- current_scale = scale
core.redraw = true
end