mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
vim-patch:8.1.0166: using dict_add_nr_str() is clumsy
Problem: Using dict_add_nr_str() is clumsy.
Solution: Split into two functions. (Ozaki Kiichi, closes vim/vim#3154)
e0be167a80
This commit is contained in:
@@ -611,7 +611,7 @@ static int dbg_parsearg(char_u *arg, garray_T *gap)
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ":breakadd".
|
/// ":breakadd". Also used for ":profile".
|
||||||
void ex_breakadd(exarg_T *eap)
|
void ex_breakadd(exarg_T *eap)
|
||||||
{
|
{
|
||||||
struct debuggy *bp;
|
struct debuggy *bp;
|
||||||
|
@@ -4739,11 +4739,8 @@ static int qf_getprop_defaults(qf_info_T *qi, int flags, dict_T *retdict)
|
|||||||
/// Return the quickfix list title as 'title' in retdict
|
/// Return the quickfix list title as 'title' in retdict
|
||||||
static int qf_getprop_title(qf_info_T *qi, int qf_idx, dict_T *retdict)
|
static int qf_getprop_title(qf_info_T *qi, int qf_idx, dict_T *retdict)
|
||||||
{
|
{
|
||||||
char_u *t = qi->qf_lists[qf_idx].qf_title;
|
return tv_dict_add_str(retdict, S_LEN("title"),
|
||||||
if (t == NULL) {
|
(const char *)qi->qf_lists[qf_idx].qf_title);
|
||||||
t = (char_u *)"";
|
|
||||||
}
|
|
||||||
return tv_dict_add_str(retdict, S_LEN("title"), (const char *)t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return the quickfix list items/entries as 'items' in retdict
|
/// Return the quickfix list items/entries as 'items' in retdict
|
||||||
|
Reference in New Issue
Block a user