Skip to content

Commit 033d80d

Browse files
committed
Wipe out scratch buffers
Some people are really picky about their buffer numbers and not having unlisted, unloaded buffers in the buffer list. I personally don't care and like the fact that marks and stuff are retained between runs, but I don't care enough to really fight it. This is cleaner afterall. Closes #879
1 parent ecb4669 commit 033d80d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python3/vimspector/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ def CleanUpHiddenBuffer( buf ):
166166
return
167167

168168
try:
169-
vim.command( 'bdelete! {}'.format( buf.number ) )
169+
vim.command( 'bwipeout! {}'.format( buf.number ) )
170170
except vim.error as e:
171-
# FIXME: For now just ignore the "no buffers were deleted" error
172-
if 'E516' not in str( e ):
171+
if 'E517' not in str( e ):
173172
raise
174173

175174

0 commit comments

Comments
 (0)