diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-21 17:13:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-21 17:13:14 +0200 |
commit | b8bd2e6ebab03baf2672067067a599df69a278c0 (patch) | |
tree | c0a490909a31bc6ab7ede44e1c490ef289f949e3 /src/testdir/test_vim9_builtin.vim | |
parent | 489d60996deb5e7c1a3b4633412d54632e6def42 (diff) | |
download | vim-git-b8bd2e6ebab03baf2672067067a599df69a278c0.tar.gz |
patch 8.2.3363: when :edit reuses the current buffer the alternate file is setv8.2.3363
Problem: When :edit reuses the current buffer the alternate file is set to
the same buffer.
Solution: Only set the alternate file when not reusing the buffer.
(closes #8783)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 00d021fe1..434f47748 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -1268,7 +1268,7 @@ enddef def Test_getbufline() e SomeFile var buf = bufnr() - e # + sp Otherfile var lines = ['aaa', 'bbb', 'ccc'] setbufline(buf, 1, lines) getbufline('#', 1, '$')->assert_equal(lines) |