From 35011d7e7b6eb6326276dd3b8743361f295e7fa7 Mon Sep 17 00:00:00 2001 From: Jipok Date: Tue, 21 Dec 2021 14:32:29 +0500 Subject: [PATCH] Remove lineguide_size from style.lua --- data/core/style.lua | 1 - data/plugins/lineguide.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/core/style.lua b/data/core/style.lua index 9bf4d3cb..3b0d9e35 100644 --- a/data/core/style.lua +++ b/data/core/style.lua @@ -3,7 +3,6 @@ local style = {} style.padding = { x = common.round(14 * SCALE), y = common.round(7 * SCALE) } style.divider_size = common.round(1 * SCALE) -style.lineguide_size = style.divider_size style.scrollbar_size = common.round(4 * SCALE) style.caret_width = common.round(2 * SCALE) style.tab_width = common.round(170 * SCALE) diff --git a/data/plugins/lineguide.lua b/data/plugins/lineguide.lua index eb152cd8..e1e8f373 100644 --- a/data/plugins/lineguide.lua +++ b/data/plugins/lineguide.lua @@ -11,7 +11,7 @@ function DocView:draw_overlay(...) local offset = self:get_font():get_width("n") * config.line_limit local x = self:get_line_screen_position(1) + offset local y = self.position.y - local w = style.lineguide_size + local w = style.lineguide_size or style.divider_size local h = self.size.y local color = style.guide or style.selection