Added in the ability to specify a color for whitespace.

This commit is contained in:
Adam Harrison 2021-11-23 18:42:01 -05:00
parent d7b6fe3d42
commit 3162f4ea4f
1 changed files with 2 additions and 2 deletions

View File

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