diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-07 23:07:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-07 23:07:41 +0200 |
commit | fe08df452af10db8a24dbeb1bd9ef09492a4bc66 (patch) | |
tree | 6efc248890dc4e3d4096d52d9b6eb99721e21787 /src/testdir/test_lua.vim | |
parent | 2549acf794109731eab693bd396bb863d0e2cff4 (diff) | |
download | vim-git-fe08df452af10db8a24dbeb1bd9ef09492a4bc66.tar.gz |
patch 8.1.0164: luaeval('vim.buffer().name') returns an errorv8.1.0164
Problem: luaeval('vim.buffer().name') returns an error.
Solution: Return an empty string. (Dominique Pelle, closes #3167)
Diffstat (limited to 'src/testdir/test_lua.vim')
-rw-r--r-- | src/testdir/test_lua.vim | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim index 73134718d..228079203 100644 --- a/src/testdir/test_lua.vim +++ b/src/testdir/test_lua.vim @@ -198,11 +198,8 @@ endfunc " Test vim.buffer().name and vim.buffer().fname func Test_buffer_name() new - " FIXME: for an unnamed buffer, I would expect - " vim.buffer().name to give an empty string, but - " it returns 0. Is it a bug? - " so this assert_equal is commented out. - " call assert_equal('', luaeval('vim.buffer().name')) + call assert_equal('', luaeval('vim.buffer().name')) + call assert_equal('', luaeval('vim.buffer().fname')) bwipe! new Xfoo |