We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 259eaf6 commit 0ba9f67Copy full SHA for 0ba9f67
autoload/scratch_buffer.vim
@@ -65,9 +65,11 @@ function! scratch_buffer#clean() abort
65
if filereadable(scratch)
66
call delete(scratch)
67
endif
68
+ endfor
69
- if all_buffer_names->scratch_buffer#helper#contains(scratch)
70
- execute ':bwipe' bufnr(scratch)
+ for scratch in all_buffer_names
71
+ if scratch =~# base_pattern
72
+ execute ':bwipe!' bufnr(scratch)
73
74
endfor
75
endfunction
test/scratch_buffer.vim
@@ -39,7 +39,7 @@ function! s:suite.accept_buffer_size() abort
39
40
41
function! s:suite.wipes_opened_files_and_buffer() abort
42
- ScratchBufferOpen md
+ ScratchBufferOpenFile md
43
write
44
ScratchBufferOpen md
45
0 commit comments