Apply drawwhitespace plugin only to DocViews

This commit is contained in:
Guldoman
2022-04-12 04:05:59 +02:00
parent c70b5130a9
commit 93b31211cb
+1
View File
@@ -42,6 +42,7 @@ end
local draw_line_text = DocView.draw_line_text local draw_line_text = DocView.draw_line_text
function DocView:draw_line_text(idx, x, y) 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 font = (self:get_font() or style.syntax_fonts["whitespace"] or style.syntax_fonts["comment"])
local ty = y + self:get_line_text_y_offset() local ty = y + self:get_line_text_y_offset()
local tx local tx