Skip to content

Commit

Permalink
add defx reference
Browse files Browse the repository at this point in the history
  • Loading branch information
eugen0329 committed Feb 28, 2021
1 parent 4e4a422 commit 243ec21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/esearch/writer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ fu! s:set_linecount(esearch, linecount) abort
endfu

fu! s:rename_buffer(buf_a, filename_b) abort
" commands are inspired by defx.nvim
let hidden = esearch#let#restorable({'&l:hidden': 1})
silent call a:buf_a.bufdo('silent! saveas! ' . fnameescape(a:filename_b) . '| bdelete! # ')
call hidden.restore()
Expand Down

0 comments on commit 243ec21

Please sign in to comment.