Skip to content

Commit

Permalink
fix(will squash): fix edge case 2
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Jan 25, 2024
1 parent c147310 commit 7dc24f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/incline/winline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ function Winline:render(opts)
end
if
(config.hide.cursorline == true or (config.hide.cursorline == 'focused_win' and self.focused))
and self:get_win_geom_row() == a.nvim_win_call(self.target_win, vim.fn.winline)
and (
self:get_win_geom_row() + ((config.window.overlap.winbar or vim.wo[self.target_win].winbar == '') and 1 or 0)
)
== a.nvim_win_call(self.target_win, vim.fn.winline)
then
self:hide(HIDE_TEMP)
return
Expand Down

0 comments on commit 7dc24f0

Please sign in to comment.