diff src/testdir/test_recover.vim @ 18372:11394af51615 v8.1.2180

patch 8.1.2180: Error E303 is not useful when 'directory' is empty Commit: https://github.com/vim/vim/commit/00e192becd50a38cb21a1bc3f86fcc7a21f8ee88 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 19 17:01:28 2019 +0200 patch 8.1.2180: Error E303 is not useful when 'directory' is empty Problem: Error E303 is not useful when 'directory' is empty. Solution: Skip the error message. (Daniel Hahler, https://github.com/vim/vim/issues/5067)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Oct 2019 17:15:03 +0200
parents 1fad9675d8fd
children 08940efa6b4e
line wrap: on
line diff
--- a/src/testdir/test_recover.vim
+++ b/src/testdir/test_recover.vim
@@ -12,6 +12,12 @@ func Test_recover_root_dir()
     set dir=/notexist/
   endif
   call assert_fails('split Xtest', 'E303:')
+
+  " No error with empty 'directory' setting.
+  set directory=
+  split XtestOK
+  close!
+
   set dir&
 endfunc