From 3162f4ea4f63ccb00b093a646933314996166be1 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 23 Nov 2021 18:42:01 -0500 Subject: [PATCH] Added in the ability to specify a color for whitespace. --- data/plugins/drawwhitespace.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/plugins/drawwhitespace.lua b/data/plugins/drawwhitespace.lua index 7b7fa011..0004c7ea 100644 --- a/data/plugins/drawwhitespace.lua +++ b/data/plugins/drawwhitespace.lua @@ -7,8 +7,8 @@ local common = require "core.common" local draw_line_text = DocView.draw_line_text function DocView:draw_line_text(idx, x, y) - local font = (self:get_font() or style.syntax_fonts["comment"]) - local color = style.syntax.comment + local font = (self:get_font() or style.syntax_fonts["whitespace"] or style.syntax_fonts["comment"]) + local color = style.syntax.whitespace or style.syntax.comment local ty = y + self:get_line_text_y_offset() local tx local text, offset, s, e = self.doc.lines[idx], 1