diff options
Diffstat (limited to 'plugins/indentguide.lua')
-rw-r--r-- | plugins/indentguide.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua index 2f8bb6a..0513be4 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(sspaces) + local sw = font:get_width_subpixel(sspaces) / ss renderer.draw_rect(x + sw, y, w, h, color) sspaces = sspaces .. (' '):rep(config.indent_size) end |