mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
fix: height error while scrolling down
This commit is contained in:
parent
7f116ce800
commit
1e52a2c422
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ function M.open(bufnr, winid, ctx_ranges, ctx_lines)
|
|||
local gutter_width = get_gutter_width(winid)
|
||||
local win_width = math.max(1, api.nvim_win_get_width(winid) - gutter_width)
|
||||
|
||||
local win_height = #ctx_lines
|
||||
local win_height = math.max(1, #ctx_lines)
|
||||
|
||||
local gbufnr, ctx_bufnr = get_bufs()
|
||||
|
||||
|
|
Loading…
Reference in a new issue