aboutsummaryrefslogtreecommitdiff
path: root/plugins/motiontrail.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/motiontrail.lua')
-rw-r--r--plugins/motiontrail.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua
index 9bbca86..f5f3a90 100644
--- a/plugins/motiontrail.lua
+++ b/plugins/motiontrail.lua
@@ -4,7 +4,7 @@ local config = require "core.config"
local style = require "core.style"
local DocView = require "core.docview"
-config.motiontrail_steps = 50
+config.plugins.motiontrail = { steps = 50 }
local function lerp(a, b, t)
@@ -32,7 +32,7 @@ function DocView:draw(...)
if last_view == self and (x ~= last_x or y ~= last_y) then
local lx = x
- for i = 0, 1, 1 / config.motiontrail_steps do
+ for i = 0, 1, 1 / config.plugins.motiontrail.steps do
local ix = lerp(x, last_x, i)
local iy = lerp(y, last_y, i)
local iw = math.max(w, math.ceil(math.abs(ix - lx)))