aboutsummaryrefslogtreecommitdiff
path: root/plugins/bracketmatch.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/bracketmatch.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/bracketmatch.lua')
-rw-r--r--plugins/bracketmatch.lua2
1 files changed, 1 insertions, 1 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