Skip to content

Commit cea67c5

Browse files
committed
fix: cursorline when overlap.winbar = true
1 parent 7ced17d commit cea67c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/incline/winline.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ function Winline:render(opts)
220220
if
221221
(config.hide.cursorline == true or (config.hide.cursorline == 'focused_win' and self.focused))
222222
and (
223-
self:get_win_geom_row() + ((config.window.overlap.winbar or vim.wo[self.target_win].winbar == '') and 1 or 0)
223+
self:get_win_geom_row()
224+
+ ((config.window.overlap.winbar == false or vim.wo[self.target_win].winbar == '') and 1 or 0)
224225
)
225226
== a.nvim_win_call(self.target_win, vim.fn.winline)
226227
then

0 commit comments

Comments
 (0)