Skip to content

Commit 55429b0

Browse files
committed
bwipeout after fern opened
1 parent 72b715f commit 55429b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/fern_hijack.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ function! s:hijack_directory() abort
88
if !isdirectory(path)
99
return
1010
endif
11-
silent bwipeout %
11+
let dirbuf = bufnr()
1212
execute printf('Fern %s', fnameescape(path))
13+
silent execute 'bwipeout' dirbuf
1314
endfunction
1415

1516
function! s:suppress_netrw() abort

0 commit comments

Comments
 (0)