Patch 8.2.0532
Problem:    Cannot use simplify() as a method.
Solution:   Add FEARG_1. (closes #5996)
Files:      runtime/doc/eval.txt, src/evalfunc.c,
            src/testdir/test_functions.vim


*** ../vim-8.2.0531/runtime/doc/eval.txt        2020-04-01 22:10:56.432201238 
+0200
--- runtime/doc/eval.txt        2020-04-08 20:01:08.645196718 +0200
***************
*** 9012,9017 ****
--- 9017,9024 ----
                directory.  In order to resolve all the involved symbolic
                links before simplifying the path name, use |resolve()|.
  
+               Can also be used as a |method|: >
+                       GetName()->simplify()
  
  sin({expr})                                           *sin()*
                Return the sine of {expr}, measured in radians, as a |Float|.
*** ../vim-8.2.0531/src/evalfunc.c      2020-04-07 19:57:26.043208340 +0200
--- src/evalfunc.c      2020-04-08 20:00:43.137287985 +0200
***************
*** 837,843 ****
      {"sign_undefine", 0, 1, FEARG_1,    ret_number,   
SIGN_FUNC(f_sign_undefine)},
      {"sign_unplace",  1, 2, FEARG_1,    ret_number,   
SIGN_FUNC(f_sign_unplace)},
      {"sign_unplacelist", 1, 2, FEARG_1,         ret_list_number, 
SIGN_FUNC(f_sign_unplacelist)},
!     {"simplify",      1, 1, 0,          ret_string,   f_simplify},
      {"sin",           1, 1, FEARG_1,    ret_float,    FLOAT_FUNC(f_sin)},
      {"sinh",          1, 1, FEARG_1,    ret_float,    FLOAT_FUNC(f_sinh)},
      {"sort",          1, 3, FEARG_1,    ret_list_any, f_sort},
--- 837,843 ----
      {"sign_undefine", 0, 1, FEARG_1,    ret_number,   
SIGN_FUNC(f_sign_undefine)},
      {"sign_unplace",  1, 2, FEARG_1,    ret_number,   
SIGN_FUNC(f_sign_unplace)},
      {"sign_unplacelist", 1, 2, FEARG_1,         ret_list_number, 
SIGN_FUNC(f_sign_unplacelist)},
!     {"simplify",      1, 1, FEARG_1,    ret_string,   f_simplify},
      {"sin",           1, 1, FEARG_1,    ret_float,    FLOAT_FUNC(f_sin)},
      {"sinh",          1, 1, FEARG_1,    ret_float,    FLOAT_FUNC(f_sinh)},
      {"sort",          1, 3, FEARG_1,    ret_list_any, f_sort},
*** ../vim-8.2.0531/src/testdir/test_functions.vim      2020-04-06 
21:35:02.460237781 +0200
--- src/testdir/test_functions.vim      2020-04-08 20:02:23.436928327 +0200
***************
*** 450,456 ****
    call assert_equal('/',           simplify('/.'))
    call assert_equal('/',           simplify('/..'))
    call assert_equal('/...',        simplify('/...'))
!   call assert_equal('./dir/file',  simplify('./dir/file'))
    call assert_equal('./dir/file',  simplify('.///dir//file'))
    call assert_equal('./dir/file',  simplify('./dir/./file'))
    call assert_equal('./file',      simplify('./dir/../file'))
--- 450,456 ----
    call assert_equal('/',           simplify('/.'))
    call assert_equal('/',           simplify('/..'))
    call assert_equal('/...',        simplify('/...'))
!   call assert_equal('./dir/file',  './dir/file'->simplify())
    call assert_equal('./dir/file',  simplify('.///dir//file'))
    call assert_equal('./dir/file',  simplify('./dir/./file'))
    call assert_equal('./file',      simplify('./dir/../file'))
*** ../vim-8.2.0531/src/version.c       2020-04-08 19:48:53.551732882 +0200
--- src/version.c       2020-04-08 20:03:11.484755382 +0200
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     532,
  /**/

-- 
Lawmakers made it obligatory for everybody to take at least one bath
each week -- on Saturday night.
                [real standing law in Vermont, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202004081804.038I4PDR013502%40masaka.moolenaar.net.

Raspunde prin e-mail lui