File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -202,22 +202,24 @@ endfunction
202202function ! s: suite .ScratchBufferOpen_should_use_when_tmp_buffer_pattern () abort
203203 let g: scratch_buffer_file_pattern = #{
204204 \ when_tmp_buffer: fnamemodify (' ./test/tmp/scratch-tmp-%d' , ' :p' ),
205+ \ when_file_buffer: ' not specified' ,
205206 \ }
206207
207208 ScratchBufferOpen
208209 const file_name = expand (' %:p' )
209- const expected = printf (g: scratch_buffer_file_pattern .when_tmp_buffer, 0 )
210+ const expected = printf (g: scratch_buffer_file_pattern .when_tmp_buffer, 0 ) .. ' .md '
210211 call s: expect (file_name).to_equal (expected)
211212endfunction
212213
213214function ! s: suite .ScratchBufferOpenFile_should_use_when_file_buffer_pattern () abort
214215 let g: scratch_buffer_file_pattern = #{
216+ \ when_tmp_buffer: ' not specified' ,
215217 \ when_file_buffer: fnamemodify (' ./test/tmp/scratch-file-%d' , ' :p' ),
216218 \ }
217219
218220 ScratchBufferOpenFile
219221 const file_name = expand (' %:p' )
220- const expected = printf (g: scratch_buffer_file_pattern .when_file_buffer, 0 )
222+ const expected = printf (g: scratch_buffer_file_pattern .when_file_buffer, 0 ) .. ' .md '
221223 call s: expect (file_name).to_equal (expected)
222224endfunction
223225
You can’t perform that action at this time.
0 commit comments