Skip to content

Commit

Permalink
fix wrong return type for lua api on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Feb 15, 2024
1 parent 2198c07 commit bb399b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspsaga/definition.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ function def:create_win(bufnr, root_dir)
local win_conf = api.nvim_win_get_config(self.list[#self.list].winid)
win_conf.bufnr = bufnr
win_conf.title = fname
win_conf.row = win_conf.row[false] + 1
win_conf.col = win_conf.col[false] + 1
win_conf.row = vim.version().minor >= 10 and win_conf.row or win_conf.row[false] + 1
win_conf.col = vim.version().minor >= 10 and win_conf.col or win_conf.col[false] + 1
win_conf.height = win_conf.height - 1
win_conf.width = win_conf.width - 2
return win:new_float(win_conf, true, true):wininfo()
Expand Down

0 comments on commit bb399b2

Please sign in to comment.