aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/inanimate.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/inanimate.lua b/plugins/inanimate.lua
index 90e3625..a01aa40 100644
--- a/plugins/inanimate.lua
+++ b/plugins/inanimate.lua
@@ -1,8 +1,12 @@
+local core = require "core"
local View = require "core.view"
function View:move_towards(t, k, dest)
if type(t) ~= "table" then
return self:move_towards(self, t, k, dest)
end
+ if t[k] ~= dest then
+ core.redraw = true
+ end
t[k] = dest
end