Skip to content

Commit

Permalink
chore: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jtubbenhauer committed Nov 14, 2023
1 parent 4beb859 commit 02e8591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/selfhelp/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ M.display_help = function()
vim.api.nvim_buf_set_lines(bufnr, 0, -1, true, lines)
local ns = vim.api.nvim_create_namespace("SelfHelp")
for _, hl in ipairs(highlights) do
local hl_group, lnum, start_col, end_col = unpack(hl)
end_col = math.min(end_col, string.len(lines[lnum]))
vim.api.nvim_buf_set_extmark(bufnr, ns, lnum - 1, start_col, {
local hl_group, hl_lnum, start_col, end_col = unpack(hl)
end_col = math.min(end_col, string.len(lines[hl_lnum]))
vim.api.nvim_buf_set_extmark(bufnr, ns, hl_lnum - 1, start_col, {
end_col = end_col,
hl_group = hl_group,
})
Expand Down
2 changes: 1 addition & 1 deletion plugin/selfhelp.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vim.api.nvim_create_user_command("SelfHelp", require("selfhelp").display_help(), {})
vim.api.nvim_create_user_command("SelfHelp", require("selfhelp").display_help, {})

0 comments on commit 02e8591

Please sign in to comment.