Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lua/ide/buffers/diffbuffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ DiffBuffer.new = function(path_a, path_b)

-- if no wins, create one
if #wins == 0 then
local cur_win = vim.api.nvim_get_current_win()
vim.cmd("vsplit")
-- may inherit the SB win highlight, reset it.
vim.api.nvim_win_set_option(cur_win, 'winhighlight', 'Normal:Normal')
else
table.sort(wins)
vim.api.nvim_set_current_win(wins[1])
end

Expand Down
2 changes: 1 addition & 1 deletion lua/ide/components/explorer/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ ExplorerComponent.new = function(name, config)
return false
end

local current = vim.fn.fnamemodify(root.path, ":.")
local current = vim.fn.fnamemodify(root.path, ":.") .. '/'

if vim.fn.strpart(dest, 0, #current) == current then
if not self.tree.root.expanded then
Expand Down