forked from aniani/vim
patch 8.2.5029: "textlock" is always zero
Problem: "textlock" is always zero.
Solution: Remove "textlock" and rename "textwinlock" to "textlock".
(closes #10489)
This commit is contained in:
@@ -1041,7 +1041,7 @@ func Test_edit_completefunc_delete()
|
||||
set completefunc=CompleteFunc
|
||||
call setline(1, ['', 'abcd', ''])
|
||||
2d
|
||||
call assert_fails("normal 2G$a\<C-X>\<C-U>", 'E578:')
|
||||
call assert_fails("normal 2G$a\<C-X>\<C-U>", 'E565:')
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
|
||||
@@ -698,7 +698,7 @@ func Test_completefunc_error()
|
||||
endfunc
|
||||
set completefunc=CompleteFunc
|
||||
call setline(1, ['', 'abcd', ''])
|
||||
call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E578:')
|
||||
call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E565:')
|
||||
|
||||
" delete text when called for the second time
|
||||
func CompleteFunc2(findstart, base)
|
||||
@@ -710,7 +710,7 @@ func Test_completefunc_error()
|
||||
endfunc
|
||||
set completefunc=CompleteFunc2
|
||||
call setline(1, ['', 'abcd', ''])
|
||||
call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E578:')
|
||||
call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E565:')
|
||||
|
||||
" Jump to a different window from the complete function
|
||||
func CompleteFunc3(findstart, base)
|
||||
|
||||
@@ -655,7 +655,7 @@ func Test_complete_func_mess()
|
||||
set completefunc=MessComplete
|
||||
new
|
||||
call setline(1, 'Ju')
|
||||
call assert_fails('call feedkeys("A\<c-x>\<c-u>/\<esc>", "tx")', 'E578:')
|
||||
call assert_fails('call feedkeys("A\<c-x>\<c-u>/\<esc>", "tx")', 'E565:')
|
||||
call assert_equal('Jan/', getline(1))
|
||||
bwipe!
|
||||
set completefunc=
|
||||
|
||||
@@ -3474,7 +3474,7 @@ endfunc
|
||||
func Test_vimgrep_with_textlock()
|
||||
new
|
||||
|
||||
" Simple way to execute something with "textwinlock" set.
|
||||
" Simple way to execute something with "textlock" set.
|
||||
" Check that vimgrep without jumping can be executed.
|
||||
au InsertCharPre * vimgrep /RunTheTest/j runtest.vim
|
||||
normal ax
|
||||
|
||||
Reference in New Issue
Block a user