Skip to content

Commit

Permalink
fix code action preview
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Mar 17, 2024
1 parent 74b13f6 commit 89ffd71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspsaga/codeaction/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ local function create_preview_win(content, main_winid)

local winheight = api.nvim_win_get_height(win_conf.win)
if win_conf.anchor:find('^S') then
opt.row = util.is_ten and win_conf.row or win_conf.row[false] - win_conf.height - 2
opt.row = util.is_ten and win_conf.row - 3 or win_conf.row[false] - win_conf.height - 2
max_height = util.is_ten and win_conf.row or win_conf.row[false] - win_conf.height
elseif win_conf.anchor:find('^N') then
opt.row = util.is_ten and win_conf.row or win_conf.row[false] + win_conf.height + 2
opt.row = util.is_ten and win_conf.row + 3 or win_conf.row[false] + win_conf.height + 2
max_height = winheight - opt.row
end

Expand Down

0 comments on commit 89ffd71

Please sign in to comment.