Compare commits
1 commit
build/dev-
...
fix/previe
| Author | SHA1 | Date | |
|---|---|---|---|
| f42c9dabd9 |
1 changed files with 1 additions and 1 deletions
|
|
@ -602,7 +602,7 @@ M.open_preview = function(opts, callback)
|
|||
|
||||
-- If we called open_preview during an autocmd, then the edit command may not trigger the
|
||||
-- BufReadCmd to load the buffer. So we need to do it manually.
|
||||
if util.is_oil_bufnr(filebufnr) then
|
||||
if util.is_oil_bufnr(filebufnr) and not vim.b[filebufnr].oil_ready then
|
||||
M.load_oil_buffer(filebufnr)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue