Skip to content

Commit

Permalink
fixed issue d11wtq#9 and d11wtq#10
Browse files Browse the repository at this point in the history
  • Loading branch information
j5shi authored and amadeus committed Nov 1, 2017
1 parent 26c69e2 commit ea69233
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/ctrlp_bdelete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ function! s:DeleteMarkedBuffers()

" call bdelete on all marked buffers
for fname in marked
let bufid = fname =~ '\[\d\+\*No Name\]$' ? str2nr(matchstr(fname, '\d\+'))
\ : fnamemodify(fname[2:], ':p')
let g:ctrlp_delete_buf_fname = fname
let bufid = fname =~ '\[\d\+\*No Name\]$' ? str2nr(matchstr(matchstr(fname, '\[\d\+\*No Name\]$'), '\d\+'))
\ : fnamemodify(fname, ':p')
let g:ctrlp_delete_buf_bufid = bufid
exec "silent! bdelete" bufid
endfor

Expand Down

0 comments on commit ea69233

Please sign in to comment.