Skip to content

Commit

Permalink
Fix the wrong title highlight of issue rcarriga#292
Browse files Browse the repository at this point in the history
Fix the wrong title highlight of issue rcarriga#292
  • Loading branch information
unisons authored Nov 23, 2024
1 parent fbef5d3 commit 26e3253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/notify/render/compact.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ return function(bufnr, notif, highlights)

vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, notif.message)

local icon_length = vim.str_utfindex(icon)
local prefix_length = vim.str_utfindex(prefix)
local icon_length = string.len(icon)
local prefix_length = string.len(prefix)

vim.api.nvim_buf_set_extmark(bufnr, namespace, 0, 0, {
hl_group = highlights.icon,
Expand Down

0 comments on commit 26e3253

Please sign in to comment.