From 9e15d93909096a14b43fc8e2e098ba9ef734e166 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sat, 30 Apr 2022 04:50:43 +0200 Subject: `selectionhighlight`: Draw frame after drawing line body Before, if a line was highlighted, all the frames it contained were invisible. --- plugins/selectionhighlight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3