diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-23 14:18:43 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-23 14:22:08 +0800 |
| commit | 264791925a76412ed9109028d0d694f7847249be (patch) | |
| tree | 0a65d6dc02c9b644a0111a2e7c5b87aa0f9742de /src/nvim/testdir/test_options.vim | |
| parent | d0ced2a127ab3974deaefcfab214b564b1ef48e7 (diff) | |
| download | rneovim-264791925a76412ed9109028d0d694f7847249be.tar.gz rneovim-264791925a76412ed9109028d0d694f7847249be.tar.bz2 rneovim-264791925a76412ed9109028d0d694f7847249be.zip | |
vim-patch:9.0.0059: test file has wrong name
Problem: Test file has wrong name.
Solution: Rename the file. Various small fixes. (closes vim/vim#10674)
https://github.com/vim/vim/commit/bb404f5ad5ec909318bc24e5b82e4ed7b87ba8f4
Diffstat (limited to 'src/nvim/testdir/test_options.vim')
| -rw-r--r-- | src/nvim/testdir/test_options.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index ccf9c5c35e..c5b1266689 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -49,7 +49,9 @@ func Test_pastetoggle() let &pastetoggle = str call assert_equal(str, &pastetoggle) call assert_equal("\n pastetoggle=" .. strtrans(str), execute('set pastetoggle?')) + unlet str + set pastetoggle& endfunc func Test_wildchar() @@ -783,7 +785,6 @@ endfunc func Test_rightleftcmd() CheckFeature rightleft set rightleft - set rightleftcmd let g:l = [] func AddPos() @@ -792,6 +793,13 @@ func Test_rightleftcmd() endfunc cmap <expr> <F2> AddPos() + set rightleftcmd= + call feedkeys("/\<F2>abc\<Right>\<F2>\<Left>\<Left>\<F2>" .. + \ "\<Right>\<F2>\<Esc>", 'xt') + call assert_equal([2, 5, 3, 4], g:l) + + let g:l = [] + set rightleftcmd=search call feedkeys("/\<F2>abc\<Left>\<F2>\<Right>\<Right>\<F2>" .. \ "\<Left>\<F2>\<Esc>", 'xt') call assert_equal([&co - 1, &co - 4, &co - 2, &co - 3], g:l) |