Mercurial > vim
comparison src/testdir/test_changelist.vim @ 17857:4935244c1128 v8.1.1925
patch 8.1.1925: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/4c313b13fb7bfa694ec6d2a13175e8650c007b2a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 24 22:58:31 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Aug 2019 23:00:04 +0200 |
parents | 3f3d9ed211b2 |
children | f70a3c1000bb |
comparison
equal
deleted
inserted
replaced
17856:786c5c8ba565 | 17857:4935244c1128 |
---|---|
6 return | 6 return |
7 endif | 7 endif |
8 | 8 |
9 bwipe! | 9 bwipe! |
10 enew | 10 enew |
11 call assert_equal([], getchangelist(10)) | 11 call assert_equal([], 10->getchangelist()) |
12 call assert_equal([[], 0], getchangelist('%')) | 12 call assert_equal([[], 0], getchangelist()) |
13 | 13 |
14 call writefile(['line1', 'line2', 'line3'], 'Xfile1.txt') | 14 call writefile(['line1', 'line2', 'line3'], 'Xfile1.txt') |
15 call writefile(['line1', 'line2', 'line3'], 'Xfile2.txt') | 15 call writefile(['line1', 'line2', 'line3'], 'Xfile2.txt') |
16 | 16 |
17 edit Xfile1.txt | 17 edit Xfile1.txt |