Commits

Takeshi NISHIDA  committed 748865f

minor fix

  • Participants
  • Parent commits 0489915

Comments (0)

Files changed (1)

File autoload/fuf/buffer.vim

   call fuf#defineKeyMappingInHandler(g:fuf_buffer_keyDelete,
         \                            'onCr(' . s:OPEN_TYPE_DELETE . ', 0)')
   let self.items = range(1, bufnr('$'))
-  call filter(self.items, 'buflisted(v:val) && v:val != self.bufNrPrev')
+  call filter(self.items, 'buflisted(v:val) && v:val != self.bufNrPrev && v:val != bufnr("%")')
   call map(self.items, 's:makeItem(v:val)')
   if g:fuf_buffer_mruOrder
     call sort(self.items, 's:compareTimeDescending')