Mercurial > vim
annotate src/testdir/test_autoformat_join.in @ 10285:cd16ef948ad1 v8.0.0039
commit https://github.com/vim/vim/commit/156919f99afd1ac11d19d4270afbc1afb7245640
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 15 20:46:20 2016 +0200
patch 8.0.0039
Problem: When Vim 8 reads an old viminfo and exits, the next time marks are
not read from viminfo. (Ned Batchelder)
Solution: Set a mark when it wasn't set before, even when the timestamp is
zero. (closes #1170)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Oct 2016 21:00:04 +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: |