Skip to content

Commit

Permalink
Merge pull request #373 from ealang/fix
Browse files Browse the repository at this point in the history
Resolves #371
  • Loading branch information
lambdalisue authored Oct 16, 2021
2 parents 264a73d + 7a95f34 commit 41197d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload/fern/internal/buffer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ endfunction

function! fern#internal#buffer#renames(pairs) abort
let bufnr_saved = bufnr('%')
let hidden_saved = &hidden
set hidden
let hidden_saved = &bufhidden
set bufhidden=hide
try
for [src, dst] in a:pairs
let bufnr = bufnr(src)
Expand All @@ -83,8 +83,8 @@ function! fern#internal#buffer#renames(pairs) abort
call s:patch_to_avoid_e13()
endfor
finally
execute printf('keepjumps keepalt %dbuffer', bufnr_saved)
let &hidden = hidden_saved
execute printf('keepjumps keepalt %dbuffer!', bufnr_saved)
let &bufhidden = hidden_saved
endtry
endfunction

Expand Down

0 comments on commit 41197d2

Please sign in to comment.