diff options
Diffstat (limited to 'src/filepath.c')
-rw-r--r-- | src/filepath.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/filepath.c b/src/filepath.c index 1bde4200d3..6ee5fad960 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -1417,6 +1417,18 @@ f_isdirectory(typval_T *argvars, typval_T *rettv) } /* + * "isabsolutepath()" function + */ + void +f_isabsolutepath(typval_T *argvars, typval_T *rettv) +{ + if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) + return; + + rettv->vval.v_number = mch_isFullName(tv_get_string_strict(&argvars[0])); +} + +/* * Create the directory in which "dir" is located, and higher levels when * needed. * Return OK or FAIL. |