Mercurial > vim
comparison src/testdir/test_put.vim @ 14009:830a47e48791 v8.1.0022
patch 8.1.0022: repeating put from expression register fails
commit https://github.com/vim/vim/commit/833093bfb0e4a7f89b5adc66babcfa8ac09cfda9
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 23 21:53:52 2018 +0200
patch 8.1.0022: repeating put from expression register fails
Problem: Repeating put from expression register fails.
Solution: Re-evaluate the expression register. (Andy Massimino,
closes #2945)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 23 May 2018 22:00:06 +0200 |
parents | 72b20190dce6 |
children | 51693b1a640e |
comparison
equal
deleted
inserted
replaced
14008:e773aacfc5bb | 14009:830a47e48791 |
---|---|
43 call assert_equal(['Line 3', '', 'Line 1', 'Line2'], getline(1,'$')) | 43 call assert_equal(['Line 3', '', 'Line 1', 'Line2'], getline(1,'$')) |
44 " clean up | 44 " clean up |
45 bw! | 45 bw! |
46 call setreg('a', a[0], a[1]) | 46 call setreg('a', a[0], a[1]) |
47 endfunc | 47 endfunc |
48 | |
49 func Test_put_expr() | |
50 new | |
51 call setline(1, repeat(['A'], 6)) | |
52 exec "1norm! \"=line('.')\<cr>p" | |
53 norm! j0. | |
54 norm! j0. | |
55 exec "4norm! \"=\<cr>P" | |
56 norm! j0. | |
57 norm! j0. | |
58 call assert_equal(['A1','A2','A3','4A','5A','6A'], getline(1,'$')) | |
59 bw! | |
60 endfunc |