Skip to content

Commit 24daa61

Browse files
authored
Merge pull request #8 from Milly/fix-bwipeout
Suppress unintentional window closing
2 parents 0e8eb83 + 8613796 commit 24daa61

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-
keepjumps keepalt bwipeout %
11+
let bufnr = bufnr()
1212
execute printf('keepjumps keepalt Fern %s', fnameescape(path))
13+
execute printf('bwipeout %d', bufnr)
1314
endfunction
1415

1516
function! s:suppress_netrw() abort

0 commit comments

Comments
 (0)