diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-19 19:20:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 19:20:39 +0800 |
commit | 2af9be3db59b2e26268dc62cb65e673e2f7d4783 (patch) | |
tree | 37d12b5e0ff7b9847c2504c544e691733015a577 /src/nvim/eval.c | |
parent | 5dc43265b1f966a9653cc552fa5301ee487a8116 (diff) | |
download | rneovim-2af9be3db59b2e26268dc62cb65e673e2f7d4783.tar.gz rneovim-2af9be3db59b2e26268dc62cb65e673e2f7d4783.tar.bz2 rneovim-2af9be3db59b2e26268dc62cb65e673e2f7d4783.zip |
vim-patch:8.1.1966: some code in options.c fits better elsewhere (#19840)
Problem: Some code in options.c fits better elsewhere.
Solution: Move functions from options.c to other files. (Yegappan
Lakshmanan, closes vim/vim#4889)
https://github.com/vim/vim/commit/e677df8d93772a705f40a94f3c871aee78fe4d99
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 4014f2dd22..21068e9101 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -5195,29 +5195,6 @@ linenr_T tv_get_lnum_buf(const typval_T *const tv, const buf_T *const buf) return (linenr_T)tv_get_number_chk(tv, NULL); } -void get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv) -{ - if (what_arg->v_type == VAR_UNKNOWN) { - tv_list_alloc_ret(rettv, kListLenMayKnow); - if (is_qf || wp != NULL) { - (void)get_errorlist(NULL, wp, -1, 0, rettv->vval.v_list); - } - } else { - tv_dict_alloc_ret(rettv); - if (is_qf || wp != NULL) { - if (what_arg->v_type == VAR_DICT) { - dict_T *d = what_arg->vval.v_dict; - - if (d != NULL) { - qf_get_properties(wp, d, rettv->vval.v_dict); - } - } else { - emsg(_(e_dictreq)); - } - } - } -} - /// @return information (variables, options, etc.) about a tab page /// as a dictionary. dict_T *get_tabpage_info(tabpage_T *tp, int tp_idx) |