diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-26 14:14:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-26 14:14:18 +0100 |
commit | 0a1a6a1aa4004d0e4d64cc375540156b8bd92a87 (patch) | |
tree | 364d968e8787cca6655bb93e9b048486cc1236b0 /src/testdir/test_startup.vim | |
parent | ff871400461183010d3ab98f3f326e4bb75e221b (diff) |
patch 8.2.2655: The -w command line argument doesn't workv8.2.2655
Problem: The -w command line argument doesn't work.
Solution: Don't set 'window' when set with the -w argument. (closes #8011)
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index ae12f61873..0817c9e576 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -1045,6 +1045,7 @@ endfunc func Test_w_arg() " Can't catch the output of gvim. CheckNotGui + call writefile(["iVim Editor\<Esc>:q!\<CR>"], 'Xscriptin', 'b') if RunVim([], [], '-s Xscriptin -w Xscriptout') call assert_equal(["iVim Editor\e:q!\r"], readfile('Xscriptout')) @@ -1060,6 +1061,14 @@ func Test_w_arg() call assert_equal("Cannot open for script output: \"Xdir\"\n", m) call delete("Xdir", 'rf') endif + + " A number argument sets the 'window' option + call writefile(["iwindow \<C-R>=&window\<CR>\<Esc>:wq! Xresult\<CR>"], 'Xscriptin', 'b') + if RunVim([], [], '-s Xscriptin -w 17') + call assert_equal(["window 17"], readfile('Xresult')) + call delete('Xresult') + endif + call delete('Xscriptin') endfunc " Test for the "-s scriptin" argument |