From: Bram Moolenaar Date: Mon, 29 Jul 2019 19:14:42 +0000 (+0200) Subject: patch 8.1.1775: error message may be empty in filetype test X-Git-Tag: v8.1.1775 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eee9f65b2a213e9031f172d9d3b22adad6cb985d;p=vim patch 8.1.1775: error message may be empty in filetype test Problem: Error message may be empty in filetype test. Solution: Use v:exception instead. (Daniel Hahler, closs #4744) --- diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 8b668c7a2..92a520573 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -521,7 +521,7 @@ func CheckItems(checks) try exe 'edit ' . fnameescape(names[i]) catch - call assert_report('cannot edit "' . names[i] . '": ' . v:errmsg) + call assert_report('cannot edit "' . names[i] . '": ' . v:exception) endtry if &filetype == '' && &readonly " File exists but not able to edit it (permission denied) diff --git a/src/version.c b/src/version.c index 8a3923ee2..1043275a7 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1775, /**/ 1774, /**/