Skip to content

Commit

Permalink
Confirm the wipeout of a unsaved buffer whose file has been renamed. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilRunninger authored Feb 14, 2019
1 parent 74be22d commit 5e8aa9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nerdtree_plugin/fs_menu.vim
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ function! s:renameBuffer(bufNum, newNodeName, isDirectory)
exec "tabnext " . s:originalTabNumber
exec s:originalWindowNumber . "wincmd w"
" 3. We don't need a previous buffer anymore
exec "bwipeout! " . a:bufNum
try
exec "confirm bwipeout " . a:bufNum
catch
" This happens when answering Cancel if confirmation is needed. Do nothing.
endtry
endfunction
"FUNCTION: NERDTreeAddNode(){{{1
function! NERDTreeAddNode()
Expand Down

0 comments on commit 5e8aa9e

Please sign in to comment.