aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/indentguide.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua
index 0513be4..2f8bb6a 100644
--- a/plugins/indentguide.lua
+++ b/plugins/indentguide.lua
@@ -39,10 +39,10 @@ function DocView:draw_line_text(idx, x, y)
local h = self:get_line_height()
local sspaces = ""
local font = self:get_font()
- local ss = font:subpixel_scale()
+
for _ = 0, spaces - 1, config.indent_size do
local color = style.guide or style.selection
- local sw = font:get_width_subpixel(sspaces) / ss
+ local sw = font:get_width(sspaces)
renderer.draw_rect(x + sw, y, w, h, color)
sspaces = sspaces .. (' '):rep(config.indent_size)
end