We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476a613 commit 7035fd9Copy full SHA for 7035fd9
4 files changed
runtime/doc/eval.txt
@@ -9024,6 +9024,8 @@ simplify({filename}) *simplify()*
9024
directory. In order to resolve all the involved symbolic
9025
links before simplifying the path name, use |resolve()|.
9026
9027
+ Can also be used as a |method|: >
9028
+ GetName()->simplify()
9029
9030
sin({expr}) *sin()*
9031
Return the sine of {expr}, measured in radians, as a |Float|.
src/evalfunc.c
@@ -837,7 +837,7 @@ static funcentry_T global_functions[] =
837
{"sign_undefine", 0, 1, FEARG_1, ret_number, SIGN_FUNC(f_sign_undefine)},
838
{"sign_unplace", 1, 2, FEARG_1, ret_number, SIGN_FUNC(f_sign_unplace)},
839
{"sign_unplacelist", 1, 2, FEARG_1, ret_list_number, SIGN_FUNC(f_sign_unplacelist)},
840
- {"simplify", 1, 1, 0, ret_string, f_simplify},
+ {"simplify", 1, 1, FEARG_1, ret_string, f_simplify},
841
{"sin", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_sin)},
842
{"sinh", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_sinh)},
843
{"sort", 1, 3, FEARG_1, ret_list_any, f_sort},
src/testdir/test_functions.vim
@@ -450,7 +450,7 @@ func Test_simplify()
450
call assert_equal('/', simplify('/.'))
451
call assert_equal('/', simplify('/..'))
452
call assert_equal('/...', simplify('/...'))
453
- call assert_equal('./dir/file', simplify('./dir/file'))
+ call assert_equal('./dir/file', './dir/file'->simplify())
454
call assert_equal('./dir/file', simplify('.///dir//file'))
455
call assert_equal('./dir/file', simplify('./dir/./file'))
456
call assert_equal('./file', simplify('./dir/../file'))
src/version.c
@@ -738,6 +738,8 @@ static char *(features[]) =
738
739
static int included_patches[] =
740
{ /* Add new patch number below this line */
741
+/**/
742
+ 532,
743
/**/
744
531,
745
0 commit comments