mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.1062: some test function names do not match what they are doing (#21429)
Problem: Some test function names do not match what they are doing.
Solution: Leave out user data for the test that is called "NoUserData".
(closes vim/vim#11703)
4cd45f1408
Nvim's tests already match function names. Add missing indent changes
and a missing comment from patch 8.2.0084.
This commit is contained in:
parent
ef95174694
commit
a2bf0cef10
@ -2755,6 +2755,7 @@ static void get_complete_info(list_T *what_list, dict_T *retdict)
|
|||||||
tv_dict_add_str(di, S_LEN("kind"), EMPTY_IF_NULL(match->cp_text[CPT_KIND]));
|
tv_dict_add_str(di, S_LEN("kind"), EMPTY_IF_NULL(match->cp_text[CPT_KIND]));
|
||||||
tv_dict_add_str(di, S_LEN("info"), EMPTY_IF_NULL(match->cp_text[CPT_INFO]));
|
tv_dict_add_str(di, S_LEN("info"), EMPTY_IF_NULL(match->cp_text[CPT_INFO]));
|
||||||
if (match->cp_user_data.v_type == VAR_UNKNOWN) {
|
if (match->cp_user_data.v_type == VAR_UNKNOWN) {
|
||||||
|
// Add an empty string for backwards compatibility
|
||||||
tv_dict_add_str(di, S_LEN("user_data"), "");
|
tv_dict_add_str(di, S_LEN("user_data"), "");
|
||||||
} else {
|
} else {
|
||||||
tv_dict_add_tv(di, S_LEN("user_data"), &match->cp_user_data);
|
tv_dict_add_tv(di, S_LEN("user_data"), &match->cp_user_data);
|
||||||
|
@ -191,17 +191,17 @@ func s:CompleteDone_CompleteFuncDict( findstart, base )
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'words': [
|
\ 'words': [
|
||||||
\ {
|
\ {
|
||||||
\ 'word': 'aword',
|
\ 'word': 'aword',
|
||||||
\ 'abbr': 'wrd',
|
\ 'abbr': 'wrd',
|
||||||
\ 'menu': 'extra text',
|
\ 'menu': 'extra text',
|
||||||
\ 'info': 'words are cool',
|
\ 'info': 'words are cool',
|
||||||
\ 'kind': 'W',
|
\ 'kind': 'W',
|
||||||
\ 'user_data': ['one', 'two']
|
\ 'user_data': ['one', 'two']
|
||||||
\ }
|
\ }
|
||||||
\ ]
|
\ ]
|
||||||
\ }
|
\ }
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func s:CompleteDone_CheckCompletedItemNone()
|
func s:CompleteDone_CheckCompletedItemNone()
|
||||||
@ -261,16 +261,16 @@ func s:CompleteDone_CompleteFuncDictNoUserData(findstart, base)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'words': [
|
\ 'words': [
|
||||||
\ {
|
\ {
|
||||||
\ 'word': 'aword',
|
\ 'word': 'aword',
|
||||||
\ 'abbr': 'wrd',
|
\ 'abbr': 'wrd',
|
||||||
\ 'menu': 'extra text',
|
\ 'menu': 'extra text',
|
||||||
\ 'info': 'words are cool',
|
\ 'info': 'words are cool',
|
||||||
\ 'kind': 'W'
|
\ 'kind': 'W',
|
||||||
\ }
|
\ }
|
||||||
\ ]
|
\ ]
|
||||||
\ }
|
\ }
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func s:CompleteDone_CheckCompletedItemDictNoUserData()
|
func s:CompleteDone_CheckCompletedItemDictNoUserData()
|
||||||
|
Loading…
Reference in New Issue
Block a user