diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-13 10:38:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-13 10:38:21 -0500 |
| commit | 9808c8d9ddea2a8e29e7b979581ba67f8871a1b1 (patch) | |
| tree | 82f70a113233a5cb984e04b75d5ba4f06a851782 /src/nvim/testdir | |
| parent | 5d5e018a5c1a8f0f185718dd4513b908c164a6b9 (diff) | |
| parent | a1cdb6ca6a796b6ff5593f924659f5b707e23e27 (diff) | |
| download | rneovim-9808c8d9ddea2a8e29e7b979581ba67f8871a1b1.tar.gz rneovim-9808c8d9ddea2a8e29e7b979581ba67f8871a1b1.tar.bz2 rneovim-9808c8d9ddea2a8e29e7b979581ba67f8871a1b1.zip | |
Merge pull request #14126 from janlazo/vim-8.2.2593
vim-patch:8.2.{2593,2594,2595}
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_mksession.vim | 14 | ||||
| -rw-r--r-- | src/nvim/testdir/test_options.vim | 22 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim index 7c7804212b..8486f3ff68 100644 --- a/src/nvim/testdir/test_mksession.vim +++ b/src/nvim/testdir/test_mksession.vim @@ -331,6 +331,20 @@ func Test_mkview_no_balt() %bwipe endfunc +func Test_mksession_no_balt() + edit Xtestfile1 + edit Xtestfile2 + + bdelete Xtestfile1 + mksession! Xtestview + + source Xtestview + call assert_equal(0, buflisted('Xtestfile1')) + + call delete('Xtestview') + %bwipe +endfunc + " Test :mkview with a file argument. func Test_mkview_file() " Create a view with line number and a fold. diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 05564d2ce8..79481097ec 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -634,6 +634,28 @@ func Test_opt_winminheight_term() call delete('Xwinminheight') endfunc +func Test_opt_winminheight_term_tabs() + " See test/functional/legacy/options_spec.lua + CheckRunVimInTerminal + + " The tabline should be taken into account. + let lines =<< trim END + set wmh=0 stal=2 + split + split + split + split + tabnew + END + call writefile(lines, 'Xwinminheight') + let buf = RunVimInTerminal('-S Xwinminheight', #{rows: 11}) + call term_sendkeys(buf, ":set wmh=1\n") + call WaitForAssert({-> assert_match('E36: Not enough room', term_getline(buf, 11))}) + + call StopVimInTerminal(buf) + call delete('Xwinminheight') +endfunc + " Test for setting option value containing spaces with isfname+=32 func Test_isfname_with_options() set isfname+=32 |