fix(windows): check nil (#529)
* small fixes: sidebar: opts.win ~= nil case && bash - and bash in Makefile (should correspond to she-bang in build.sh) * fix lua style
This commit is contained in:
parent
d10cca4265
commit
bf8a943f45
2
Makefile
2
Makefile
@ -32,7 +32,7 @@ else
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
$1:
|
$1:
|
||||||
LUA_VERSION=$1 sh ./build.sh
|
LUA_VERSION=$1 bash ./build.sh
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -1484,7 +1484,9 @@ function Sidebar:render(opts)
|
|||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
local chat_history = Path.history.load(self.code.bufnr)
|
local chat_history = Path.history.load(self.code.bufnr)
|
||||||
|
|
||||||
local get_position = function() return (opts and opts.win.position) and opts.win.position or Config.windows.position end
|
local get_position = function()
|
||||||
|
return (opts and opts.win and opts.win.position) and opts.win.position or Config.windows.position
|
||||||
|
end
|
||||||
|
|
||||||
local get_height = function()
|
local get_height = function()
|
||||||
local selected_code_size = self:get_selected_code_size()
|
local selected_code_size = self:get_selected_code_size()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user