diff options
author | ThaCuber <70547062+thacuber2a03@users.noreply.github.com> | 2023-10-11 22:31:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 04:31:34 +0200 |
commit | 94e82cc6f6ca03287281fd2f330f1551ae629e47 (patch) | |
tree | 5de9517db6c469c667ba0c7fd0e9fad44dd0a29e /plugins | |
parent | df8984bbbcb15cecf2589a4bf6ac6fe2a55a8eb4 (diff) | |
download | lite-xl-plugins-94e82cc6f6ca03287281fd2f330f1551ae629e47.tar.gz lite-xl-plugins-94e82cc6f6ca03287281fd2f330f1551ae629e47.zip |
fix fatal motiontrail error when mixed with settings (#316)
* fix fatal motiontrail error when mixed with settings
* bump version
* bump a little less
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/motiontrail.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua index 5c8a270..0401e10 100644 --- a/plugins/motiontrail.lua +++ b/plugins/motiontrail.lua @@ -90,7 +90,7 @@ function DocView:draw_caret(x, y) self.last_doc_pos[caret_idx] = self.last_doc_pos[caret_idx] or {} local line, col = self.doc:get_selection_idx(caret_idx) - if self.draws <= 1 then + if (self.draws or 0) <= 1 then local lsx, lsy = self.last_pos[caret_idx][1] or x, self.last_pos[caret_idx][2] or y local lsl, lsc = self.last_doc_pos[caret_idx][1], self.last_doc_pos[caret_idx][2] local w, h = get_caret_size(self, caret_idx) |