annotate src/testdir/test107.in @ 7647:65b2d593c203 v7.4.1123

commit https://github.com/vim/vim/commit/a24f0a550fed3d9773800cf6be4efd072fff20ec Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 17 19:39:00 2016 +0100 patch 7.4.1123 Problem: Using ":argadd" when there are no arguments results in the second argument to be the current one. (Yegappan Lakshmanan) Solution: Correct the w_arg_idx value.
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jan 2016 19:45:04 +0100
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: