Mercurial > vim
diff src/terminal.c @ 15146:7903dce131d4 v8.1.0583
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()
commit https://github.com/vim/vim/commit/8f66717a1f835b8194139d158c1e2df8b30c3ef3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 14 15:38:31 2018 +0100
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()
Problem: Using illogical name for get_dict_number()/get_dict_string().
Solution: Rename to start with dict_.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Dec 2018 15:45:06 +0100 |
parents | f3b4cd98944c |
children | aa877e0b7f62 |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -3523,9 +3523,9 @@ handle_drop_command(listitem_T *item) dict_T *dict = opt_item->li_tv.vval.v_dict; char_u *p; - p = get_dict_string(dict, (char_u *)"ff", FALSE); + p = dict_get_string(dict, (char_u *)"ff", FALSE); if (p == NULL) - p = get_dict_string(dict, (char_u *)"fileformat", FALSE); + p = dict_get_string(dict, (char_u *)"fileformat", FALSE); if (p != NULL) { if (check_ff_value(p) == FAIL) @@ -3533,9 +3533,9 @@ handle_drop_command(listitem_T *item) else ea.force_ff = *p; } - p = get_dict_string(dict, (char_u *)"enc", FALSE); + p = dict_get_string(dict, (char_u *)"enc", FALSE); if (p == NULL) - p = get_dict_string(dict, (char_u *)"encoding", FALSE); + p = dict_get_string(dict, (char_u *)"encoding", FALSE); if (p != NULL) { ea.cmd = alloc((int)STRLEN(p) + 12); @@ -3547,7 +3547,7 @@ handle_drop_command(listitem_T *item) } } - p = get_dict_string(dict, (char_u *)"bad", FALSE); + p = dict_get_string(dict, (char_u *)"bad", FALSE); if (p != NULL) get_bad_opt(p, &ea); @@ -3915,8 +3915,8 @@ f_term_dumpwrite(typval_T *argvars, typv d = argvars[2].vval.v_dict; if (d != NULL) { - max_height = get_dict_number(d, (char_u *)"rows"); - max_width = get_dict_number(d, (char_u *)"columns"); + max_height = dict_get_number(d, (char_u *)"rows"); + max_width = dict_get_number(d, (char_u *)"columns"); } }