From c8b60b093749e45bd3ed058203bd74d87ea65327 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Sun, 22 May 2022 22:04:09 -0400 Subject: smoothcaret: fixed new line wrap issue --- plugins/smoothcaret.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3