fix(file_selector): empty buffer and chat without file context. (#953)
This commit is contained in:
committed by
GitHub
parent
dde035831a
commit
8067cb0240
@@ -33,6 +33,8 @@ function FileSelector:reset()
|
||||
end
|
||||
|
||||
function FileSelector:add_selected_file(filepath)
|
||||
if not filepath or filepath == "" then return end
|
||||
|
||||
local uniform_path = Utils.uniform_path(filepath)
|
||||
-- Avoid duplicates
|
||||
if not vim.tbl_contains(self.selected_filepaths, uniform_path) then
|
||||
|
||||
Reference in New Issue
Block a user