aboutsummaryrefslogtreecommitdiff
path: root/plugins/centerdoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/centerdoc.lua')
-rw-r--r--plugins/centerdoc.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/centerdoc.lua b/plugins/centerdoc.lua
index c657725..a771925 100644
--- a/plugins/centerdoc.lua
+++ b/plugins/centerdoc.lua
@@ -15,14 +15,16 @@ local draw_line_gutter = DocView.draw_line_gutter
local get_gutter_width = DocView.get_gutter_width
-function DocView:draw_line_gutter(idx, x, y, width)
+function DocView:draw_line_gutter(line, x, y, width)
+ local lh
if not config.plugins.centerdoc.enable then
- draw_line_gutter(self, idx, x, y, width)
+ lh = draw_line_gutter(self, line, x, y, width)
else
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)
+ lh = draw_line_gutter(self, line, x + offset, y, real_gutter_width)
end
+ return lh
end