aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-08-03 08:45:55 +0800
committerGitHub <noreply@github.com>2024-08-03 08:45:55 +0800
commit4f3801c9257e364d777d4324489afefa6b5d3fff (patch)
treec9e3ed0907c41ba2e7185abe909fe87d945efe76 /test/functional
parent383f6934720a203d093c762cbd5362092110f35f (diff)
parent4c886d0e732b1e5626b7c410b142ccd0b0868cb7 (diff)
downloadrneovim-4f3801c9257e364d777d4324489afefa6b5d3fff.tar.gz
rneovim-4f3801c9257e364d777d4324489afefa6b5d3fff.tar.bz2
rneovim-4f3801c9257e364d777d4324489afefa6b5d3fff.zip
Merge pull request #29967 from zeertzjq/vim-9.1.0648
vim-patch:9.1.{0648,0653}
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/legacy/crash_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/legacy/crash_spec.lua b/test/functional/legacy/crash_spec.lua
index e72c3a512a..b63b3146f4 100644
--- a/test/functional/legacy/crash_spec.lua
+++ b/test/functional/legacy/crash_spec.lua
@@ -8,6 +8,7 @@ local eq = t.eq
local eval = n.eval
local exec = n.exec
local feed = n.feed
+local pcall_err = t.pcall_err
before_each(clear)
@@ -51,3 +52,14 @@ it('no crash when closing window with tag in loclist', function()
eq(0, eval('bufexists(g:qf_bufnr)'))
assert_alive()
end)
+
+it('no crash when writing "Untitled" file fails', function()
+ t.mkdir('Untitled')
+ finally(function()
+ vim.uv.fs_rmdir('Untitled')
+ end)
+ feed('ifoobar')
+ command('set bufhidden=unload')
+ eq('Vim(enew):E502: "Untitled" is a directory', pcall_err(command, 'confirm enew'))
+ assert_alive()
+end)