diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-26 20:03:08 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-27 06:12:52 +0800 |
| commit | 52f00a6c4d84a13a85ff265a5c59c92795d1b333 (patch) | |
| tree | 7d1e1013d0f08cae88aa0c019d48e1582314a7a2 /src/nvim/testdir/test_functions.vim | |
| parent | 900a151bf541c7fa77a56b4881c4836a1cabcde6 (diff) | |
| download | rneovim-52f00a6c4d84a13a85ff265a5c59c92795d1b333.tar.gz rneovim-52f00a6c4d84a13a85ff265a5c59c92795d1b333.tar.bz2 rneovim-52f00a6c4d84a13a85ff265a5c59c92795d1b333.zip | |
vim-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 vim/vim#10983)
https://github.com/vim/vim/commit/c312619f7c0cf590d96e0b2ed891d1f6c43d769b
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
| -rw-r--r-- | src/nvim/testdir/test_functions.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index b1f617ceda..555c4f58b7 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -1887,6 +1887,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')) |