diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2021-08-19 09:23:34 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2021-08-19 09:23:34 -0400 |
commit | 7286e2e11836802e31973b379e363f97e9b778a2 (patch) | |
tree | 66e429e277849b9388a45bfe3adb4b8ac3f0f543 /plugins | |
parent | e12bb22c4fabf89fd06a7e8692099acbc10c82bc (diff) | |
download | lite-xl-plugins-7286e2e11836802e31973b379e363f97e9b778a2.tar.gz lite-xl-plugins-7286e2e11836802e31973b379e363f97e9b778a2.zip |
Fixed issues with 2.0.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/centerdoc.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/centerdoc.lua b/plugins/centerdoc.lua index a1cf5e3..8e4f8a4 100644 --- a/plugins/centerdoc.lua +++ b/plugins/centerdoc.lua @@ -7,9 +7,10 @@ local draw_line_gutter = DocView.draw_line_gutter local get_gutter_width = DocView.get_gutter_width -function DocView:draw_line_gutter(idx, x, y) - local offset = self:get_gutter_width() - get_gutter_width(self) - draw_line_gutter(self, idx, x + offset, y) +function DocView:draw_line_gutter(idx, x, y, width) + local real_gutter_width = get_gutter_width(self) + local offset = self:get_gutter_width() - real_gutter_width * 2 + draw_line_gutter(self, idx, x + offset, y, real_gutter_width) end |