aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/bracketmatch.lua2
-rw-r--r--plugins/indentguide.lua3
-rw-r--r--plugins/spellcheck.lua2
3 files changed, 4 insertions, 3 deletions
diff --git a/plugins/bracketmatch.lua b/plugins/bracketmatch.lua
index b05e8ab..71fb26a 100644
--- a/plugins/bracketmatch.lua
+++ b/plugins/bracketmatch.lua
@@ -85,7 +85,7 @@ function DocView:draw_line_text(idx, x, y)
local color = style.bracketmatch_color or style.syntax["function"]
local x1 = x + self:get_col_x_offset(idx, state.col2)
local x2 = x + self:get_col_x_offset(idx, state.col2 + 1)
- local h = style.divider_size
+ local h = math.ceil(1 * SCALE)
renderer.draw_rect(x1, y + self:get_line_height() - h, x2 - x1, h, color)
end
end
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
diff --git a/plugins/spellcheck.lua b/plugins/spellcheck.lua
index 3ac4c02..64cd6f3 100644
--- a/plugins/spellcheck.lua
+++ b/plugins/spellcheck.lua
@@ -73,7 +73,7 @@ function DocView:draw_line_text(idx, x, y)
local color = style.spellcheck_error or style.syntax.keyword2
local x1 = x + self:get_col_x_offset(idx, s)
local x2 = x + self:get_col_x_offset(idx, e + 1)
- local h = style.divider_size
+ local h = math.ceil(1 * SCALE)
renderer.draw_rect(x1, y + self:get_line_height() - h, x2 - x1, h, color)
end
end