Mercurial > vim
annotate src/testdir/test_autoformat_join.in @ 11398:30af33f4d353 v8.0.0584
patch 8.0.0584: memory leak when executing quickfix tests
commit https://github.com/vim/vim/commit/d788f6fe89c77262c474de323f5dab6d1c814e27
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 23 17:19:43 2017 +0200
patch 8.0.0584: memory leak when executing quickfix tests
Problem: Memory leak when executing quickfix tests.
Solution: Free the list reference. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 23 Apr 2017 17:30:03 +0200 |
parents | bc269cf15ccd |
children |
rev | line source |
---|---|
5848 | 1 Tests for setting the '[,'] marks when joining lines. |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :/^\t\t/ | |
7003 | 6 0gqj: |
5848 | 7 :let a=string(getpos("'[")).'/'.string(getpos("']")) |
8 :/^This line/;'}-join | |
9 :let b=string(getpos("'[")).'/'.string(getpos("']")) | |
10 :$put ='First test: Start/End '.string(a) | |
11 :$put ='Second test: Start/End '.string(b) | |
12 :/^\t\t/,$wq! test.out | |
13 ENDTEST | |
14 | |
15 | |
16 O sodales, ludite, vos qui | |
17 attamen consulite per voster honur. Tua pulchra facies me fay planszer milies | |
18 | |
19 This line. | |
20 Should be joined with the next line | |
21 and with this line | |
22 | |
23 Results: |