aboutsummaryrefslogtreecommitdiff
path: root/plugins/indentguide.lua
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-05-01 19:19:03 +0100
committerrxi <rxi@users.noreply.github.com>2020-05-01 19:19:03 +0100
commit3d84ad201a00267c2b0a5b9a184d6870e360d90f (patch)
tree595deb8c2b0047db631a00e21e9f5d915e341305 /plugins/indentguide.lua
parent729168daf68170bb2216ec69008bcd66867c00da (diff)
downloadlite-xl-plugins-3d84ad201a00267c2b0a5b9a184d6870e360d90f.tar.gz
lite-xl-plugins-3d84ad201a00267c2b0a5b9a184d6870e360d90f.zip
Changed all plugins that do underlines to use 1*SCALE instead of divider size
Diffstat (limited to 'plugins/indentguide.lua')
-rw-r--r--plugins/indentguide.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua
index 9fc6345..daf7d8b 100644
--- a/plugins/indentguide.lua
+++ b/plugins/indentguide.lua
@@ -35,10 +35,11 @@ local draw_line_text = DocView.draw_line_text
function DocView:draw_line_text(idx, x, y)
local spaces = get_line_indent_guide_spaces(self.doc, idx)
local sw = self:get_font():get_width(" ")
+ local w = math.ceil(1 * SCALE)
local h = self:get_line_height()
for i = 0, spaces - 1, config.indent_size do
local color = style.guide or style.selection
- renderer.draw_rect(x + sw * i, y, style.divider_size, h, color)
+ renderer.draw_rect(x + sw * i, y, w, h, color)
end
draw_line_text(self, idx, x, y)
end