aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_options.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-09 16:25:16 +0800
committerGitHub <noreply@github.com>2022-07-09 16:25:16 +0800
commit798acbca1bfe54d7050cad0189c93bfce5ec6965 (patch)
tree5dcf0038576254949636c167a0ec5d30d5240903 /src/nvim/testdir/test_options.vim
parent45ba2e147f7b7d17acb489d64acc257ceded0887 (diff)
parentcf4aa6095f7908c9c427321a1c87bc119adc136a (diff)
downloadrneovim-798acbca1bfe54d7050cad0189c93bfce5ec6965.tar.gz
rneovim-798acbca1bfe54d7050cad0189c93bfce5ec6965.tar.bz2
rneovim-798acbca1bfe54d7050cad0189c93bfce5ec6965.zip
Merge pull request #19284 from zeertzjq/vim-8.2.0274
vim-patch:8.2.{0274,0325}
Diffstat (limited to 'src/nvim/testdir/test_options.vim')
-rw-r--r--src/nvim/testdir/test_options.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 2a3d977254..7d1fbe7d3e 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -752,6 +752,29 @@ 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
+
" Test for setting option values using v:false and v:true
func Test_opt_boolean()
set number&