From 93b31211cb32497f84e5013ce67d9ecc85bcd28c Mon Sep 17 00:00:00 2001 From: Guldoman Date: Tue, 12 Apr 2022 04:05:59 +0200 Subject: [PATCH] Apply `drawwhitespace` plugin only to `DocView`s --- data/plugins/drawwhitespace.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/data/plugins/drawwhitespace.lua b/data/plugins/drawwhitespace.lua index 9c28faa6..694eeb1a 100644 --- a/data/plugins/drawwhitespace.lua +++ b/data/plugins/drawwhitespace.lua @@ -42,6 +42,7 @@ end local draw_line_text = DocView.draw_line_text function DocView:draw_line_text(idx, x, y) + if getmetatable(self) ~= DocView then return draw_line_text(self, idx, x, y) end local font = (self:get_font() or style.syntax_fonts["whitespace"] or style.syntax_fonts["comment"]) local ty = y + self:get_line_text_y_offset() local tx