Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvbaal committed Apr 19, 2024
1 parent e9e4c30 commit 35605c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,18 @@ require("statuscol").setup({
segments = {
{
text = {
" ", -- whitespace padding
function(args) -- custom line number highlight function
" ", -- whitespace padding
function(args) -- custom line number highlight function
return ((args.lnum % 2 > 0) and "%#DiffDelete#%=" or "%#DiffAdd#%=").."%l"
end,
" ", -- whitespace padding
" ", -- whitespace padding
},
condition = {
true, -- always shown
function(args) -- shown only for the current window
true, -- always shown
function(args) -- shown only for the current window
return vim.api.nvim_get_current_win() == args.win
end,
builtin.notempty, -- only shown when the rest of the statuscolumn is not empty
builtin.not_empty, -- only shown when the rest of the statuscolumn is not empty
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion lua/statuscol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ local function place_signs(win, signs)
if not lines[lnum] then lines[lnum] = f.foldclosed(lnum) end
if lines[lnum] > 0 then
lnum = lines[lnum]
for j = lnum, f.foldclosedend(lnum) do lines[j] = lnum end
for j = lnum + 1, f.foldclosedend(lnum) do lines[j] = lnum end
end
end

Expand Down

0 comments on commit 35605c9

Please sign in to comment.