Apply `drawwhitespace` plugin only to `DocView`s

This commit is contained in:
Guldoman 2022-04-12 04:05:59 +02:00
parent c70b5130a9
commit 93b31211cb
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 1 additions and 0 deletions

View File

@ -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