aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_charsearch.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-13 13:47:01 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-14 15:40:07 +0800
commit314f1a7c2168ee7e99e2d2b348146df092341a64 (patch)
tree22837cb423804c7d9ac5c3cd80aa2932540865c2 /src/nvim/testdir/test_charsearch.vim
parentbf96b9f11d1f960006a1b5d5d363bbf804fe84e9 (diff)
downloadrneovim-314f1a7c2168ee7e99e2d2b348146df092341a64.tar.gz
rneovim-314f1a7c2168ee7e99e2d2b348146df092341a64.tar.bz2
rneovim-314f1a7c2168ee7e99e2d2b348146df092341a64.zip
vim-patch:8.2.0369: various Normal mode commands not fully tested
Problem: Various Normal mode commands not fully tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5751) https://github.com/vim/vim/commit/1671f4488105ee12a6a8558ae351436c26ab55fc Cherry-pick a fix from patch 8.2.3162. Omit test_iminsert.vim as previous patches to that file are N/A, and Nvim doesn't support iminsert=2 either, so that test isn't useful.
Diffstat (limited to 'src/nvim/testdir/test_charsearch.vim')
-rw-r--r--src/nvim/testdir/test_charsearch.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_charsearch.vim b/src/nvim/testdir/test_charsearch.vim
index 6f09e85a42..683bcabe34 100644
--- a/src/nvim/testdir/test_charsearch.vim
+++ b/src/nvim/testdir/test_charsearch.vim
@@ -1,3 +1,4 @@
+" Test for character search commands - t, T, f, F, ; and ,
func Test_charsearch()
enew!
@@ -60,3 +61,16 @@ func Test_search_cmds()
call assert_equal('ddd yee y', getline(6))
enew!
endfunc
+
+" Test for character search in virtual edit mode with <Tab>
+func Test_csearch_virtualedit()
+ new
+ set virtualedit=all
+ call setline(1, "a\tb")
+ normal! tb
+ call assert_equal([0, 1, 2, 6], getpos('.'))
+ set virtualedit&
+ close!
+endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab