diff options
Diffstat (limited to '.config/awesome/quarrel/math.lua')
-rw-r--r-- | .config/awesome/quarrel/math.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/awesome/quarrel/math.lua b/.config/awesome/quarrel/math.lua index bc1f53b..886ce13 100644 --- a/.config/awesome/quarrel/math.lua +++ b/.config/awesome/quarrel/math.lua @@ -1,6 +1,9 @@ local qmath = {} function qmath.step_value(value, steps) + if value > steps[#steps - 1][1] then + return steps[#steps - 1][2] + end for i, step in ipairs(steps) do if step[1] <= value and value <= steps[i + 1][1] then return step[2] |