From aab9fada4a9b9725ff42dffe9c7daff20f0fd85f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 11 Oct 2020 14:28:11 +0200 Subject: patch 8.2.1832: readdirex() error is displayed as a message Problem: readdirex() error is displayed as a message. (Yegappan Lakshmanan) Solution: Use semsg() instead of smsg(). --- src/fileio.c | 4 ++-- src/testdir/test_functions.vim | 2 ++ src/version.c | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fileio.c b/src/fileio.c index 83924b352c..3d6ff0da32 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4743,7 +4743,7 @@ readdir_core( if (!ok) { failed = TRUE; - smsg(_(e_notopen), path); + semsg(_(e_notopen), path); } else { @@ -4813,7 +4813,7 @@ readdir_core( if (dirp == NULL) { failed = TRUE; - smsg(_(e_notopen), path); + semsg(_(e_notopen), path); } else { diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index b816125486..e8c372cd2c 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1959,6 +1959,8 @@ func Test_readdirex() \ ['bar.txt_file', 'dir_dir', 'foo.txt_file', 'link_link']) endif eval 'Xdir'->delete('rf') + + call assert_fails('call readdirex("doesnotexist")', 'E484:') endfunc func Test_readdirex_sort() diff --git a/src/version.c b/src/version.c index b3cbf811b8..6368b5e5b9 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1832, /**/ 1831, /**/ -- cgit v1.2.3