annotate src/testdir/test107.in @ 9007:d5c6f1c5cd28 v7.4.1789

commit https://github.com/vim/vim/commit/437905c25d4cedfa16d0f87392e4a000d22362b7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 26 19:01:05 2016 +0200 patch 7.4.1789 Problem: Cannot use ch_read() in the close callback. Solution: Do not discard the channel if there is readahead. Do not discard readahead if there is a close callback.
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Apr 2016 19:15:06 +0200
parents 646616b6ff4d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5948
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for adjusting window and contents vim: set ft=vim :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :new
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :call setline(1, range(1,256))
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :let r=[]
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :func! GetScreenStr(row)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 : let str = ""
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 : for c in range(1,3)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 : let str .= nr2char(screenchar(a:row, c))
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 : endfor
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 : return str
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :endfunc
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :exe ":norm! \<C-W>t\<C-W>=1Gzt\<C-W>w\<C-W>+"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :let s3=GetScreenStr(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :wincmd p
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :call add(r, [line("w0"), s3])
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :exe ":norm! \<C-W>t\<C-W>=50Gzt\<C-W>w\<C-W>+"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :let s3=GetScreenStr(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :wincmd p
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :call add(r, [line("w0"), s3])
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :exe ":norm! \<C-W>t\<C-W>=59Gzt\<C-W>w\<C-W>+"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :let s3=GetScreenStr(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 ::wincmd p
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :call add(r, [line("w0"), s3])
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :bwipeout!
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :$put=r
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :call garbagecollect(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :/^start:/,$wq! test.out
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 ENDTEST
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 start: