diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-24 08:01:13 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-24 08:01:13 +0100 |
commit | 3b3253f8897c406ffb2d93d2b931df33c934d797 (patch) | |
tree | 889aa7dd6fcbc2b7ded97e2cc93b90a0e452ff0d /plugins | |
parent | 408dc90b6d7e0d05c5170d16189c7557bf1aeb6d (diff) | |
download | lite-xl-plugins-3b3253f8897c406ffb2d93d2b931df33c934d797.tar.gz lite-xl-plugins-3b3253f8897c406ffb2d93d2b931df33c934d797.zip |
Added setting of `core.redraw` in inanimate plugin
Fixes #43
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/inanimate.lua | 4 |
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 |