Mercurial > vim
comparison src/testdir/test_autocmd.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 | 4e9c794c3af1 |
children | c32b295af9c5 |
comparison
equal
deleted
inserted
replaced
19751:4bed205e29d9 | 19752:0927df746554 |
---|---|
1965 endfunc | 1965 endfunc |
1966 | 1966 |
1967 func Test_autocmd_bufreadpre() | 1967 func Test_autocmd_bufreadpre() |
1968 new | 1968 new |
1969 let b:bufreadpre = 1 | 1969 let b:bufreadpre = 1 |
1970 call append(0, range(100)) | 1970 call append(0, range(1000)) |
1971 w! XAutocmdBufReadPre.txt | 1971 w! XAutocmdBufReadPre.txt |
1972 autocmd BufReadPre <buffer> :let b:bufreadpre += 1 | 1972 autocmd BufReadPre <buffer> :let b:bufreadpre += 1 |
1973 norm! 50gg | 1973 norm! 500gg |
1974 sp | 1974 sp |
1975 norm! 100gg | 1975 norm! 1000gg |
1976 wincmd p | 1976 wincmd p |
1977 let g:wsv1 = winsaveview() | 1977 let g:wsv1 = winsaveview() |
1978 wincmd p | 1978 wincmd p |
1979 let g:wsv2 = winsaveview() | 1979 let g:wsv2 = winsaveview() |
1980 " triggers BufReadPre, should not move the cursor in either window | 1980 " triggers BufReadPre, should not move the cursor in either window |