Mercurial > vim
diff src/testdir/test_functions.vim @ 25398:4101d78f78e2 v8.2.3236
patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode
Commit: https://github.com/vim/vim/commit/eaf3f36168f85c8e0ab7083cd996b9fbe937045d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Jul 28 16:51:53 2021 +0200
patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode
Problem: mode() does not indicate using CTRL-O in Select mode.
Solution: Use "vs" and similar. (closes https://github.com/vim/vim/issues/8640)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 28 Jul 2021 17:00:05 +0200 |
parents | e8e2c4d33b9b |
children | 01feec4a221d |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -746,6 +746,7 @@ func Test_mode() set complete=. inoremap <F2> <C-R>=Save_mode()<CR> + xnoremap <F2> <Cmd>call Save_mode()<CR> normal! 3G exe "normal i\<F2>\<Esc>" @@ -857,6 +858,14 @@ func Test_mode() call assert_equal("\<C-S>", mode(1)) call feedkeys("\<Esc>", 'xt') + " v_CTRL-O + exe "normal gh\<C-O>\<F2>\<Esc>" + call assert_equal("v-vs", g:current_modes) + exe "normal gH\<C-O>\<F2>\<Esc>" + call assert_equal("V-Vs", g:current_modes) + exe "normal g\<C-H>\<C-O>\<F2>\<Esc>" + call assert_equal("\<C-V>-\<C-V>s", g:current_modes) + call feedkeys(":echo \<C-R>=Save_mode()\<C-U>\<CR>", 'xt') call assert_equal('c-c', g:current_modes) call feedkeys("gQecho \<C-R>=Save_mode()\<CR>\<CR>vi\<CR>", 'xt') @@ -867,6 +876,7 @@ func Test_mode() bwipe! iunmap <F2> + xunmap <F2> set complete& endfunc