diff options
-rw-r--r-- | plugins/scale.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/scale.lua b/plugins/scale.lua index 95c4009..e0b5aa0 100644 --- a/plugins/scale.lua +++ b/plugins/scale.lua @@ -35,6 +35,10 @@ end local current_scale = SCALE local default = current_scale + +local function get_scale() return current_scale end + + local function set_scale(scale) scale = common.clamp(scale, 0.2, 6) @@ -86,4 +90,5 @@ keymap.add { ["ctrl+="] = "scale:increase", } -return { set_scale = set_scale } +return { get_scale = get_scale, set_scale = set_scale } + |