diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-22 14:08:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-22 14:08:59 +0100 |
commit | 515545e11f523d14343b1e588dc0b9bd3d362bc2 (patch) | |
tree | 6770a882b96a447d8b455f7c98e6c557c221317a /src/testdir/test_global.vim | |
parent | 97acfc781bdb7fa2838dc6e0e7f9952ea61bb2fd (diff) | |
download | vim-git-515545e11f523d14343b1e588dc0b9bd3d362bc2.tar.gz |
patch 8.2.0425: code for modeless selection not sufficiently testedv8.2.0425
Problem: Code for modeless selection not sufficiently tested.
Solution: Add tests. Move mouse code functionality to a common script file.
(Yegappan Lakshmanan, closes #5821)
Diffstat (limited to 'src/testdir/test_global.vim')
-rw-r--r-- | src/testdir/test_global.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim index 7804ca470..d3bfaa90d 100644 --- a/src/testdir/test_global.vim +++ b/src/testdir/test_global.vim @@ -5,7 +5,10 @@ func Test_yank_put_clipboard() set clipboard=unnamed g/^/normal yyp call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6)) - + set clipboard=unnamed,unnamedplus + call setline(1, ['a', 'b', 'c']) + g/^/normal yyp + call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6)) set clipboard& bwipe! endfunc |