mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
patch 9.0.0274: netrw plugin does not show remote files
Problem: Netrw plugin does not show remote files. Solution: Do read a file when 'buftype' is "acwrite". (closes #10983)
This commit is contained in:
@@ -2375,6 +2375,13 @@ func Test_bufadd_bufload()
|
||||
call bufload(buf)
|
||||
call assert_equal([''], getbufline(buf, 1, '$'))
|
||||
|
||||
" when 'buftype' is "acwrite" then bufload() DOES read the file
|
||||
bwipe! XotherName
|
||||
let buf = bufadd('XotherName')
|
||||
call setbufvar(buf, '&bt', 'acwrite')
|
||||
call bufload(buf)
|
||||
call assert_equal(['some', 'text'], getbufline(buf, 1, '$'))
|
||||
|
||||
bwipe someName
|
||||
bwipe XotherName
|
||||
call assert_equal(0, bufexists('someName'))
|
||||
|
Reference in New Issue
Block a user