Skip to content

Commit

Permalink
fix: refine text_width check (#869)
Browse files Browse the repository at this point in the history
The option did the opposite of what it was supposed to.
  • Loading branch information
christoph-heinrich authored Mar 4, 2024
1 parent 35699d3 commit 3675ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uosc/lib/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3675ed4

Please sign in to comment.