Mercurial > vim
diff src/testdir/test_diffmode.vim @ 17624:4c7097a980a5 v8.1.1809
patch 8.1.1809: more functions can be used as a method
commit https://github.com/vim/vim/commit/a74e4946de074d2916e3d6004f7fa1810d12dda9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 4 17:35:53 2019 +0200
patch 8.1.1809: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Add has_key(), split(), str2list(), etc.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Aug 2019 17:45:05 +0200 |
parents | d7708560b77c |
children | f71ee7b04f0b |
line wrap: on
line diff
--- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -668,13 +668,13 @@ func Test_diff_hlID() diffthis redraw - call assert_equal(synIDattr(diff_hlID(-1, 1), "name"), "") + call diff_hlID(-1, 1)->synIDattr("name")->assert_equal("") - call assert_equal(synIDattr(diff_hlID(1, 1), "name"), "DiffChange") - call assert_equal(synIDattr(diff_hlID(1, 2), "name"), "DiffText") - call assert_equal(synIDattr(diff_hlID(2, 1), "name"), "") - call assert_equal(synIDattr(diff_hlID(3, 1), "name"), "DiffAdd") - call assert_equal(synIDattr(diff_hlID(4, 1), "name"), "") + call diff_hlID(1, 1)->synIDattr("name")->assert_equal("DiffChange") + call diff_hlID(1, 2)->synIDattr("name")->assert_equal("DiffText") + call diff_hlID(2, 1)->synIDattr("name")->assert_equal("") + call diff_hlID(3, 1)->synIDattr("name")->assert_equal("DiffAdd") + call diff_hlID(4, 1)->synIDattr("name")->assert_equal("") wincmd w call assert_equal(synIDattr(diff_hlID(1, 1), "name"), "DiffChange")