view src/testdir/test41.in @ 10102:b80ad55d62d8 v7.4.2322

commit https://github.com/vim/vim/commit/bc54f3f3fed4dc3556df8c46cee6739d211b0eb2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 14:34:28 2016 +0200 patch 7.4.2322 Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Sep 2016 14:45:06 +0200
parents 3fc0f57ecb91
children
line wrap: on
line source

Test for writing and reading a file of over 100 Kbyte

1 line: "This is the start"
3001 lines: "This is the leader"
1 line: "This is the middle"
3001 lines: "This is the trailer"
1 line: "This is the end"

STARTTEST
:%d
aThis is the start
This is the leader
This is the middle
This is the trailer
This is the endkY3000p2GY3000p
:w! Xtest
:%d
:e! Xtest
:.w! test.out
3003G:.w >>test.out
6005G:.w >>test.out
:qa!
ENDTEST