diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-25 22:42:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-25 22:42:48 +0200 |
commit | 6a33ef0deb5c75c003a9f3bd1c57f3ca5e77327e (patch) | |
tree | 1c34b542dbc6768a7fe26ffadabf0657d6a3d291 /src/evalfunc.c | |
parent | 58dbef330c42511f9d7d3b3990c73387041f3f3f (diff) | |
download | vim-git-6a33ef0deb5c75c003a9f3bd1c57f3ca5e77327e.tar.gz |
patch 8.2.1741: pathshorten() only supports using one characterv8.2.1741
Problem: pathshorten() only supports using one character.
Solution: Add an argument to control the length. (closes #7006)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 9bdeb52d9..57c4ffbce 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -779,7 +779,7 @@ static funcentry_T global_functions[] = {"nextnonblank", 1, 1, FEARG_1, ret_number, f_nextnonblank}, {"nr2char", 1, 2, FEARG_1, ret_string, f_nr2char}, {"or", 2, 2, FEARG_1, ret_number, f_or}, - {"pathshorten", 1, 1, FEARG_1, ret_string, f_pathshorten}, + {"pathshorten", 1, 2, FEARG_1, ret_string, f_pathshorten}, {"perleval", 1, 1, FEARG_1, ret_any, #ifdef FEAT_PERL f_perleval |