From bb399b24c70ff1a6e57a7057f66225daf8de3811 Mon Sep 17 00:00:00 2001 From: glepnir Date: Thu, 15 Feb 2024 14:50:18 +0800 Subject: [PATCH] fix wrong return type for lua api on nightly --- lua/lspsaga/definition.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lspsaga/definition.lua b/lua/lspsaga/definition.lua index a377c93c4..7b90b2703 100644 --- a/lua/lspsaga/definition.lua +++ b/lua/lspsaga/definition.lua @@ -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()