Skip to content

Commit

Permalink
fix(scrollbar): zindex + 1 + 2 for bar and thumb
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 27, 2022
1 parent feb8e4d commit 0daa539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/noice/view/scrollbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function Scrollbar:update()
width = 1,
col = dim.col + dim.width - 1,
row = dim.row,
zindex = zindex + 10,
zindex = zindex + 1,
})

local thumb_height = math.floor(dim.height * dim.height / buf_height + 0.5)
Expand All @@ -126,7 +126,7 @@ function Scrollbar:update()
height = thumb_height,
row = dim.row + thumb_offset,
col = dim.col + dim.width - 1, -- info.col was already added scrollbar offset.
zindex = zindex + 20,
zindex = zindex + 2,
})
end

Expand Down

0 comments on commit 0daa539

Please sign in to comment.