diff options
Diffstat (limited to 'plugins/colorpreview.lua')
-rw-r--r-- | plugins/colorpreview.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/colorpreview.lua b/plugins/colorpreview.lua index df80c8c..d255639 100644 --- a/plugins/colorpreview.lua +++ b/plugins/colorpreview.lua @@ -55,8 +55,9 @@ end local draw_line_text = DocView.draw_line_text function DocView:draw_line_text(idx, x, y) - draw_line_text(self, idx, x, y) + local lh = draw_line_text(self, idx, x, y) draw_color_previews(self, idx, x, y, "#(%x%x)(%x%x)(%x%x)(%x?%x?)%f[%W]", 16) draw_color_previews(self, idx, x, y, "#(%x)(%x)(%x)%f[%W]", 16, true) -- support #fff css format draw_color_previews(self, idx, x, y, "rgba?%((%d+)%D+(%d+)%D+(%d+)[%s,]-([%.%d]-)%s-%)", nil) + return lh end |