mirror of
https://github.com/neovim/neovim.git
synced 2026-05-01 19:45:02 +00:00
vim-patch:9.1.0900: Vim9: digraph_getlist() does not accept bool arg (#31431)
Problem: Vim9: digraph_getlist() does not accept bool argument
(Maxim Kim)
Solution: accept boolean as first argument (Yegappan Lakshmanan)
fixes: vim/vim#16154
closes: vim/vim#16159
198ada3d9f
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -607,8 +607,10 @@ func Test_digraph_getlist_function()
|
||||
" of digraphs returned.
|
||||
call assert_equal(digraph_getlist()->len(), digraph_getlist(0)->len())
|
||||
call assert_notequal(digraph_getlist()->len(), digraph_getlist(1)->len())
|
||||
call assert_equal(digraph_getlist()->len(), digraph_getlist(v:false)->len())
|
||||
call assert_notequal(digraph_getlist()->len(), digraph_getlist(v:true)->len())
|
||||
|
||||
call assert_fails('call digraph_getlist(0z12)', 'E974: Using a Blob as a Number')
|
||||
call assert_fails('call digraph_getlist(0z12)', 'E1212: Bool required for argument 1')
|
||||
endfunc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user