diff options
| author | bfredl <bjorn.linse@gmail.com> | 2023-01-16 11:55:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-16 11:55:34 +0100 |
| commit | 90493beb1584b9a99d3a71658bccd536d601e0f7 (patch) | |
| tree | 67700bd213d699b0c5116ca5b6f5078afd6f8246 /src/nvim/testdir | |
| parent | 2773685c1df8cfe6cdc7bfc29836641cadeb0726 (diff) | |
| parent | 160c69b655ce2e47fbedcc87fcb4949c2bc04dce (diff) | |
| download | rneovim-90493beb1584b9a99d3a71658bccd536d601e0f7.tar.gz rneovim-90493beb1584b9a99d3a71658bccd536d601e0f7.tar.bz2 rneovim-90493beb1584b9a99d3a71658bccd536d601e0f7.zip | |
Merge pull request #21831 from bfredl/nofd
fix(ui): re-organize tty fd handling and fix issues
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_startup.vim | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index b294d62ab4..1ee1d0dfe3 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -1043,7 +1043,7 @@ func Test_io_not_a_terminal() \ 'Vim: Warning: Input is not from a terminal'], l) endfunc -" Test for --not-a-term avoiding escape codes. +" Test for not being a term avoiding escape codes. func Test_not_a_term() CheckUnix CheckNotGui @@ -1054,18 +1054,14 @@ func Test_not_a_term() let redir = &shellredir .. ' Xvimout' endif - " Without --not-a-term there are a few escape sequences. - " This will take 2 seconds because of the missing --not-a-term + " As nvim checks the environment by itself there will be no escape sequences + " This will also happen to take two (2) seconds. let cmd = GetVimProg() .. ' --cmd quit ' .. redir exe "silent !" . cmd - call assert_match("\<Esc>", readfile('Xvimout')->join()) + call assert_notmatch("\e", readfile('Xvimout')->join()) call delete('Xvimout') - " With --not-a-term there are no escape sequences. - let cmd = GetVimProg() .. ' --not-a-term --cmd quit ' .. redir - exe "silent !" . cmd - call assert_notmatch("\<Esc>", readfile('Xvimout')->join()) - call delete('Xvimout') + " --not-a-term flag has thus been deleted endfunc |