From eee9f65b2a213e9031f172d9d3b22adad6cb985d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 29 Jul 2019 21:14:42 +0200 Subject: [PATCH] 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) --- src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, /**/ -- 2.50.1