0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 8.2.0425: code for modeless selection not sufficiently tested

Problem:    Code for modeless selection not sufficiently tested.
Solution:   Add tests.  Move mouse code functionality to a common script file.
            (Yegappan Lakshmanan, closes #5821)
This commit is contained in:
Bram Moolenaar
2020-03-22 14:08:59 +01:00
parent 97acfc781b
commit 515545e11f
12 changed files with 856 additions and 343 deletions

View File

@@ -257,22 +257,6 @@ func Test_edit_09()
bw!
endfunc
func Test_edit_10()
" Test for starting selectmode
new
set selectmode=key keymodel=startsel
call setline(1, ['abc', 'def', 'ghi'])
call cursor(1, 4)
call feedkeys("A\<s-home>start\<esc>", 'txin')
call assert_equal(['startdef', 'ghi'], getline(1, '$'))
" start select mode again with gv
set selectmode=cmd
call feedkeys('gvabc', 'xt')
call assert_equal('abctdef', getline(1))
set selectmode= keymodel=
bw!
endfunc
func Test_edit_11()
" Test that indenting kicks in
new