File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -1239,30 +1239,34 @@ endfunc
1239
1239
func Test_edit_same_buffer_in_memory ()
1240
1240
call s: reset_all_buffers ()
1241
1241
1242
- let l: current = bufnr ()
1242
+ let current = bufnr ()
1243
1243
file same_buffer
1244
1244
1245
- call assert_equal (l: current , bufnr ())
1245
+ call assert_equal (current, bufnr ())
1246
1246
set winfixbuf
1247
1247
edit same_buffer
1248
- call assert_equal (l: current , bufnr ())
1248
+ call assert_equal (current, bufnr ())
1249
+ set nowinfixbuf
1249
1250
endfunc
1250
1251
1251
1252
" Allow :e selecting the current buffer as a full path
1252
1253
func Test_edit_same_buffer_on_disk_absolute_path ()
1254
+ " This fails on CI (Windows builds), why?
1255
+ " CheckNotMSWindows
1253
1256
call s: reset_all_buffers ()
1254
1257
1255
- let l: file = tempname ()
1256
- let l: current = bufnr ()
1257
- execute " edit " . l: file
1258
+ let file = tempname ()
1259
+ let current = bufnr ()
1260
+ execute " edit " . file
1258
1261
write !
1259
1262
1260
- call assert_equal (l: current , bufnr ())
1263
+ call assert_equal (current, bufnr ())
1261
1264
set winfixbuf
1262
- execute " edit " l: file
1263
- call assert_equal (l: current , bufnr ())
1265
+ execute " edit " file
1266
+ call assert_equal (current, bufnr ())
1264
1267
1265
- call delete (l: file )
1268
+ call delete (file )
1269
+ set nowinfixbuf
1266
1270
endfunc
1267
1271
1268
1272
" Fail :enew but :enew! is allowed
You can’t perform that action at this time.
0 commit comments