# HG changeset patch # User Bram Moolenaar # Date 1586800804 -7200 # Node ID 41d0b22db0112584ec35b80414e0c9a3fe5db477 # Parent 4f3c98c4a92bee8a2482f9c09799d3ddc4d4e321 patch 8.2.0575: :digraph! not tested Commit: https://github.com/vim/vim/commit/e3242346cf1c2ff8b0315cb2cb98e731bfa952c0 Author: Bram Moolenaar Date: Mon Apr 13 19:46:43 2020 +0200 patch 8.2.0575: :digraph! not tested Problem: :digraph! not tested. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/5925) diff --git a/src/testdir/test_digraph.vim b/src/testdir/test_digraph.vim --- a/src/testdir/test_digraph.vim +++ b/src/testdir/test_digraph.vim @@ -434,6 +434,18 @@ func Test_digraphs_output() call assert_equal('Z% Ж 1046', matchstr(out, '\C\')) call assert_equal('u- ū 363', matchstr(out, '\C\')) call assert_equal('SH ^A 1', matchstr(out, '\C\')) + call assert_notmatch('Latin supplement', out) + + let out_bang_without_custom = execute(':digraph!') + digraph lt 60 + let out_bang_with_custom = execute(':digraph!') + call assert_notmatch('lt', out_bang_without_custom) + call assert_match("^\n" + \ .. "NU ^@ 10 .*\n" + \ .. "Latin supplement\n" + \ .. "!I ¡ 161 .*\n" + \ .. ".*\n" + \ .. 'Custom\n.*\', out_bang_with_custom) bw! endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 575, +/**/ 574, /**/ 573,