diff options
author | jgmdev <jgmdev@gmail.com> | 2022-05-22 22:04:09 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-05-22 22:04:09 -0400 |
commit | c8b60b093749e45bd3ed058203bd74d87ea65327 (patch) | |
tree | affa22ec84236e9f4e1bd6069cad7d09035a629e | |
parent | 76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3 (diff) | |
download | lite-xl-plugins-c8b60b093749e45bd3ed058203bd74d87ea65327.tar.gz lite-xl-plugins-c8b60b093749e45bd3ed058203bd74d87ea65327.zip |
smoothcaret: fixed new line wrap issue
-rw-r--r-- | plugins/smoothcaret.lua | 2 |
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 |