aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-22 22:04:09 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 22:04:09 -0400
commitc8b60b093749e45bd3ed058203bd74d87ea65327 (patch)
treeaffa22ec84236e9f4e1bd6069cad7d09035a629e /plugins
parent76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3 (diff)
downloadlite-xl-plugins-c8b60b093749e45bd3ed058203bd74d87ea65327.tar.gz
lite-xl-plugins-c8b60b093749e45bd3ed058203bd74d87ea65327.zip
smoothcaret: fixed new line wrap issue
Diffstat (limited to 'plugins')
-rw-r--r--plugins/smoothcaret.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/smoothcaret.lua b/plugins/smoothcaret.lua
index 2d0a633..75ee769 100644
--- a/plugins/smoothcaret.lua
+++ b/plugins/smoothcaret.lua
@@ -25,7 +25,7 @@ function DocView:update()
local x, y = self:get_line_screen_position(line, col)
-- Keep the position relative to the whole View
-- This way scrolling won't animate the caret
- x = x + self:get_col_x_offset(line, col) + self.scroll.x
+ x = x + self.scroll.x
y = y + self.scroll.y
if not self.carets[idx] then