comparison src/testdir/test_hide.vim @ 17783:45eca7143d7c v8.1.1888

patch 8.1.1888: more functions can be used as methods commit https://github.com/vim/vim/commit/073e4b92e613d22ce7b16e0fbf5c0e40cb5f9b2c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 18 23:01:56 2019 +0200 patch 8.1.1888: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Aug 2019 23:15:03 +0200
parents b59df2194b01
children e373843e2980
comparison
equal deleted inserted replaced
17782:634884027f45 17783:45eca7143d7c
35 new Xf1 35 new Xf1
36 set modified 36 set modified
37 " :hide as a command 37 " :hide as a command
38 hide 38 hide
39 call assert_equal([orig_bname, orig_winnr], [bufname(''), winnr('$')]) 39 call assert_equal([orig_bname, orig_winnr], [bufname(''), winnr('$')])
40 call assert_equal([1, 1], [buflisted('Xf1'), bufloaded('Xf1')]) 40 call assert_equal([1, 1], ['Xf1'->buflisted(), 'Xf1'->bufloaded()])
41 bwipeout! Xf1 41 bwipeout! Xf1
42 42
43 new Xf1 43 new Xf1
44 set modified 44 set modified
45 " :hide as a command with trailing comment 45 " :hide as a command with trailing comment