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 committed Feb 29, 2016
1 parent c3a855d commit b199dd8
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 @@ -54,8 +54,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 b199dd8

Please sign in to comment.