diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-27 21:32:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-27 21:32:51 +0100 |
commit | 578fe947e3ad0cc7313c798cf76cc43dbf9b4ea6 (patch) | |
tree | 7c78937ed1bf9a7b7e710355b5c7722faa6db36e /src/testdir/test_options.vim | |
parent | 12f20038714928bfecdeee31ed1f927324542034 (diff) | |
download | vim-git-578fe947e3ad0cc7313c798cf76cc43dbf9b4ea6.tar.gz |
patch 8.2.0325: ex_getln.c code not covered by testsv8.2.0325
Problem: Ex_getln.c code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #5702)
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index f8d09fefc..3fc016122 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -672,4 +672,27 @@ func Test_shellquote() call assert_match(': "#echo Hello#"', v) endfunc +" Test for the 'rightleftcmd' option +func Test_rightleftcmd() + CheckFeature rightleft + set rightleft + set rightleftcmd + + let g:l = [] + func AddPos() + call add(g:l, screencol()) + return '' + endfunc + cmap <expr> <F2> AddPos() + + 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) + + cunmap <F2> + unlet g:l + set rightleftcmd& + set rightleft& +endfunc + " vim: shiftwidth=2 sts=2 expandtab |