aboutsummaryrefslogtreecommitdiff
path: root/plugins/motiontrail.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-22 14:37:28 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 14:37:28 -0400
commit76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3 (patch)
tree11091b18f989d310fe43996b60e15ff482520c50 /plugins/motiontrail.lua
parent694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b (diff)
downloadlite-xl-plugins-76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3.tar.gz
lite-xl-plugins-76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3.zip
Fix various plugins for linewrapping
Diffstat (limited to 'plugins/motiontrail.lua')
-rw-r--r--plugins/motiontrail.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua
index 112e1cd..fd42b5f 100644
--- a/plugins/motiontrail.lua
+++ b/plugins/motiontrail.lua
@@ -15,7 +15,7 @@ end
local function get_caret_rect(dv)
local line, col = dv.doc:get_selection()
- local x, y = dv:get_line_screen_position(line)
+ local x, y = dv:get_line_screen_position(line, col)
x = x + dv:get_col_x_offset(line, col)
return x, y, style.caret_width, dv:get_line_height()
end