Mercurial > vim
comparison src/testdir/test_window_cmd.vim @ 19752:0927df746554 v8.2.0432
patch 8.2.0432: a few tests fail in a huge terminal
Commit: https://github.com/vim/vim/commit/ab505b1a4868b3e21356f95a275537551700c955
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 23 19:28:44 2020 +0100
patch 8.2.0432: a few tests fail in a huge terminal
Problem: A few tests fail in a huge terminal.
Solution: Make the tests pass. (Dominique Pelle, closes https://github.com/vim/vim/issues/5829)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 23 Mar 2020 19:30:06 +0100 |
parents | d089bd9511c0 |
children | 546bdeef35f1 |
comparison
equal
deleted
inserted
replaced
19751:4bed205e29d9 | 19752:0927df746554 |
---|---|
1011 " run commands that create a new horizontally/vertically split window | 1011 " run commands that create a new horizontally/vertically split window |
1012 func Run_noroom_for_newwindow_test(dir_arg) | 1012 func Run_noroom_for_newwindow_test(dir_arg) |
1013 let dir = (a:dir_arg == 'v') ? 'vert ' : '' | 1013 let dir = (a:dir_arg == 'v') ? 'vert ' : '' |
1014 | 1014 |
1015 " Open as many windows as possible | 1015 " Open as many windows as possible |
1016 for i in range(500) | 1016 while v:true |
1017 try | 1017 try |
1018 exe dir . 'new' | 1018 exe dir . 'new' |
1019 catch /E36:/ | 1019 catch /E36:/ |
1020 break | 1020 break |
1021 endtry | 1021 endtry |
1022 endfor | 1022 endwhile |
1023 | 1023 |
1024 call writefile(['first', 'second', 'third'], 'Xfile1') | 1024 call writefile(['first', 'second', 'third'], 'Xfile1') |
1025 call writefile([], 'Xfile2') | 1025 call writefile([], 'Xfile2') |
1026 call writefile([], 'Xfile3') | 1026 call writefile([], 'Xfile3') |
1027 | 1027 |