diff options
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 |