annotate src/testdir/test107.in @ 7156:0b4e65cf84fb v7.4.889

commit https://github.com/vim/vim/commit/74b738d414b2895b3365e26ae3b7792eb82ccf47 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 29 18:08:33 2015 +0200 patch 7.4.889 Problem: Triggering OptionSet from setwinvar() isn't tested. Solution: Add a test. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 29 Sep 2015 18:15:04 +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: