forked from aniani/vim
patch 8.1.1925: more functions can be used as methods
Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
This commit is contained in:
@@ -83,7 +83,7 @@ func Test_chdir_func()
|
||||
tabfirst
|
||||
call chdir('..')
|
||||
call assert_equal('y', fnamemodify(getcwd(1, 2), ':t'))
|
||||
call assert_equal('z', fnamemodify(getcwd(3, 2), ':t'))
|
||||
call assert_equal('z', fnamemodify(3->getcwd(2), ':t'))
|
||||
tabnext | wincmd t
|
||||
eval '..'->chdir()
|
||||
call assert_equal('Xdir', fnamemodify(getcwd(1, 2), ':t'))
|
||||
|
||||
Reference in New Issue
Block a user