annotate src/testdir/test107.in @ 10581:dffda1f9b501 v8.0.0180

patch 8.0.0180: error E937 is used twice commit https://github.com/vim/vim/commit/83381f7129aca00bc2dd24527f160bc6a60d70af Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 14 14:36:08 2017 +0100 patch 8.0.0180: error E937 is used twice Problem: Error E937 is used both for duplicate key in JSON and for trying to delete a buffer that is in use. Solution: Rename the JSON error to E938. (Norio Takagi, closes #1376)
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Jan 2017 14: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: