feat/chore: rewrite git with job and some other fixes (#743)
* feat/chore: rewrite git with job and some other fixes * fix: fs clear window, rename echo_warning -> warn also fix renaming and add an event blocker to avoid running many events at the same time
This commit is contained in:
@@ -304,7 +304,9 @@ local function is_buf_valid(bufnr)
|
||||
end
|
||||
|
||||
function M.open(options)
|
||||
local should_redraw = false
|
||||
if not is_buf_valid(M.View.bufnr) then
|
||||
should_redraw = true
|
||||
create_buffer()
|
||||
end
|
||||
|
||||
@@ -322,6 +324,7 @@ function M.open(options)
|
||||
if not opts.focus_tree then
|
||||
vim.cmd("wincmd p")
|
||||
end
|
||||
return should_redraw
|
||||
end
|
||||
|
||||
local function get_existing_buffers()
|
||||
|
||||
Reference in New Issue
Block a user