diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-20 11:38:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-20 11:38:17 +0100 |
commit | 8088ae95bbed2085c5fb196850c4e4b8df55c989 (patch) | |
tree | c1507cdeb643ca125e72d4a1158c2b7ac018c6fa /src/filepath.c | |
parent | 509ce0383105d5b516ef2d489adb7c554d3c8f81 (diff) |
patch 8.2.5138: various small issuesv8.2.5138
Problem: Various small issues.
Solution: Various small improvments.
Diffstat (limited to 'src/filepath.c')
-rw-r--r-- | src/filepath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filepath.c b/src/filepath.c index 654d03aab0..854d823c97 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -1314,7 +1314,7 @@ f_glob(typval_T *argvars, typval_T *rettv) if (rettv->v_type == VAR_STRING) rettv->vval.v_string = ExpandOne(&xpc, tv_get_string(&argvars[0]), NULL, options, WILD_ALL); - else if (rettv_list_alloc(rettv) != FAIL) + else if (rettv_list_alloc(rettv) == OK) { int i; @@ -1395,7 +1395,7 @@ f_globpath(typval_T *argvars, typval_T *rettv) globpath(tv_get_string(&argvars[0]), file, &ga, flags); if (rettv->v_type == VAR_STRING) rettv->vval.v_string = ga_concat_strings(&ga, "\n"); - else if (rettv_list_alloc(rettv) != FAIL) + else if (rettv_list_alloc(rettv) == OK) for (i = 0; i < ga.ga_len; ++i) list_append_string(rettv->vval.v_list, ((char_u **)(ga.ga_data))[i], -1); |