aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2022-04-30 04:50:43 +0200
committerGuldoman <giulio.lettieri@gmail.com>2022-04-30 04:50:43 +0200
commit9e15d93909096a14b43fc8e2e098ba9ef734e166 (patch)
tree3c8b68efd21dde9d64dfc872bf5885d72b9ca22c /plugins
parent5ceb969dca910261b6d3c93ded0c0381fef2b235 (diff)
downloadlite-xl-plugins-9e15d93909096a14b43fc8e2e098ba9ef734e166.tar.gz
lite-xl-plugins-9e15d93909096a14b43fc8e2e098ba9ef734e166.zip
`selectionhighlight`: Draw frame after drawing line body
Before, if a line was highlighted, all the frames it contained were invisible.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/selectionhighlight.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/selectionhighlight.lua b/plugins/selectionhighlight.lua
index 76e0617..25a6125 100644
--- a/plugins/selectionhighlight.lua
+++ b/plugins/selectionhighlight.lua
@@ -17,6 +17,7 @@ end
local draw_line_body = DocView.draw_line_body
function DocView:draw_line_body(idx, x, y)
+ draw_line_body(self, idx, x, y)
local line1, col1, line2, col2 = self.doc:get_selection(true)
if line1 == line2 and col1 ~= col2 then
local selection = self.doc:get_text(line1, col1, line2, col2)
@@ -38,6 +39,5 @@ function DocView:draw_line_body(idx, x, y)
end
end
end
- draw_line_body(self, idx, x, y)
end