fix: refine text_width check (#869)

The option did the opposite of what it was supposed to.
This commit is contained in:
christoph-heinrich
2024-03-04 14:59:48 +01:00
committed by GitHub
parent 35699d3004
commit 3675ed47c3

View File

@@ -382,7 +382,7 @@ do
---@type boolean, boolean
local bold, italic = opts.bold or options.font_bold, opts.italic or false
if config.refine.text_width then
if not config.refine.text_width then
---@type {[string|number]: {[1]: number, [2]: integer}}
local text_width = get_cache_stage(width_cache, bold)
local width_px = text_width[text]