File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -640,6 +640,7 @@ M.select = function(opts, callback)
640
640
end
641
641
642
642
local prev_win = vim .api .nvim_get_current_win ()
643
+ local oil_bufnr = vim .api .nvim_get_current_buf ()
643
644
644
645
-- Async iter over entries so we can normalize the url before opening
645
646
local i = 1
@@ -665,7 +666,7 @@ M.select = function(opts, callback)
665
666
666
667
-- Normalize the url before opening to prevent needing to rename them inside the BufReadCmd
667
668
-- Renaming buffers during opening can lead to missed autocmds
668
- util .get_edit_path (0 , entry , function (normalized_url )
669
+ util .get_edit_path (oil_bufnr , entry , function (normalized_url )
669
670
local mods = {
670
671
vertical = opts .vertical ,
671
672
horizontal = opts .horizontal ,
You can’t perform that action at this time.
0 commit comments